85 lines
1.8 KiB
YAML
85 lines
1.8 KiB
YAML
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
image: docker.med-logic.ru/medicine-nginx:latest
|
|
container_name: medicine-nginx
|
|
restart: "always"
|
|
env_file:
|
|
- ../.env
|
|
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"
|
|
env_file:
|
|
- ../.env
|
|
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
|
|
env_file:
|
|
- ../.env
|
|
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"
|