1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2020-07-07 17:44:52 +10:00
commit 8a5103d691
1 changed files with 78 additions and 0 deletions

78
docker-compose.yml Normal file
View File

@ -0,0 +1,78 @@
version: '3'
services:
nginx:
image: docker.med-logic.ru/medicine-nginx:latest
container_name: medicine-nginx
restart: "always"
volumes:
- medicine-public-data:/app/public:ro
links:
- "app:app-host"
ports:
- "${NGINX_PORT}:80"
networks:
- default
- medicine-network
extra_hosts:
- "host.docker:${HOST_DOCKER}"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
app:
image: docker.med-logic.ru/medicine-app:latest
container_name: medicine-app
restart: "always"
environment:
UWSGI_PROCESSES: ${UWSGI_PROCESSES}
UWSGI_THREADS: ${UWSGI_THREADS}
expose:
- "840"
command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
volumes:
- ./.env:/app/.env
- medicine-public-data:/app/public
networks:
- default
- medicine-network
external_links:
- "postgres:postgres-host"
- "redis:redis-host"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
tasks:
image: docker.med-logic.ru/medicine-app:latest
container_name: medicine-tasks
restart: "always"
command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord-tasks.conf
volumes:
- ./.env:/app/.env
- medicine-public-data:/app/public
networks:
- default
- medicine-network
external_links:
- "postgres:postgres-host"
- "redis:redis-host"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
volumes:
medicine-public-data:
networks:
medicine-network:
external:
name: "medicine-network"