Last active
November 20, 2019 22:33
-
-
Save Cleberw3b/33745e2b51b14f1c62409e4fc8dcb0ec to your computer and use it in GitHub Desktop.
docker composer for nossovoto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nginx | |
restart: "no" | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf | |
- /etc/letsencrypt/:/etc/letsencrypt/ | |
- ./webnossovoto/build/:/var/www/html/app/ | |
- ./curadoria-nossovoto/build/:/var/www/html/curadoria/ | |
ports: | |
- 80:80 | |
- 443:443 | |
depends_on: | |
- curadoria | |
- nossovoto | |
curadoria: | |
container_name: curadoria | |
restart: always | |
build: ./nossovoto_curadoria_api/ | |
volumes: | |
- ./nossovoto_curadoria_api:/app | |
- /etc/letsencrypt/:/etc/letsencrypt/ | |
ports: | |
- 3001:3001 | |
depends_on: | |
- mongodb | |
nossovoto: | |
container_name: nossovoto | |
restart: always | |
build: ./nossovoto_front_api/ | |
volumes: | |
- ./nossovoto_front_api:/app | |
- /etc/letsencrypt/:/etc/letsencrypt/ | |
ports: | |
- 3002:3002 | |
depends_on: | |
- mongodb | |
mongodb: | |
container_name: mongodb | |
image: mongo | |
restart: "no" | |
volumes: | |
- ./mongo_data:/data/db | |
expose: | |
- "27017" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment