Skip to content

Instantly share code, notes, and snippets.

@ziedHamdi
Created November 16, 2021 13:19
Show Gist options
  • Save ziedHamdi/3b16b196f84ff920570e926816053a87 to your computer and use it in GitHub Desktop.
Save ziedHamdi/3b16b196f84ff920570e926816053a87 to your computer and use it in GitHub Desktop.
version: "3.9"
services:
nginx:
container_name: nginx
image: 'nginx:0.1'
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/nginx/cache:/var/cache/nginx
networks:
- weally
# command: tail -f /dev/null
redis-server:
container_name: redis-server
image: 'redis:6.2-alpine'
networks:
- weally
# ports:
# - "6379:6379"
mongo-server:
container_name: mongo-server
image: mongo:5.0.3
networks:
- weally
ports:
- "27017:27017"
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
restart: always
graphql_server:
container_name: graphql_server
image: node:14.17.3-alpine
networks:
- weally
depends_on:
- mongo-server
- redis-server
volumes:
- type: bind
source: ../weallyback/
target: /back
- type: volume
source: backnodemodules # name of the volume, see below
target: /back/node_modules
volume:
nocopy: true
working_dir: /back
command: yarn start
ports:
- "4000:4000"
environment:
- PORT=4000
next_server:
container_name: next_server
image: node:14.17.3-alpine
networks:
- weally
depends_on:
- graphql_server
volumes:
- type: bind
source: ../weally.org/
target: /front
- type: volume
source: frontnodemodules # name of the volume, see below
target: /front/node_modules
volume:
nocopy: true
working_dir: /front
command: yarn start
ports:
- "3000:3000"
environment:
- PORT=3000
volumes:
frontnodemodules:
backnodemodules:
mongodb:
mongodb_config:
networks:
weally:
external: false
name: weally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment