new image
This commit is contained in:
parent
70d135211c
commit
ecc865c47f
|
|
@ -3,10 +3,6 @@ version: '3'
|
|||
|
||||
services:
|
||||
|
||||
nginx:
|
||||
external_links:
|
||||
- "tfoms-patient:patient-search-host"
|
||||
|
||||
app:
|
||||
external_links:
|
||||
- "tfoms-patient:patient-search-host"
|
||||
|
|
|
|||
|
|
@ -3,40 +3,19 @@ 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"
|
||||
- "${NGINX_HTTPS_PORT}:443"
|
||||
networks:
|
||||
- default
|
||||
- medicine-network
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "200k"
|
||||
max-file: "10"
|
||||
|
||||
app:
|
||||
image: docker.med-logic.ru/medicine-app:latest
|
||||
image: docker.med-logic.ru/medicine: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
|
||||
ports:
|
||||
- "${NGINX_PORT}:80"
|
||||
- "${NGINX_HTTPS_PORT}:443"
|
||||
volumes:
|
||||
- medicine-public-data:/app/public
|
||||
- ./.env:/app/.env
|
||||
- ../volumes/files:/volumes
|
||||
networks:
|
||||
- default
|
||||
- medicine-network
|
||||
|
|
@ -50,7 +29,7 @@ services:
|
|||
max-file: "10"
|
||||
|
||||
tasks:
|
||||
image: docker.med-logic.ru/medicine-app:latest
|
||||
image: docker.med-logic.ru/medicine:latest
|
||||
container_name: medicine-tasks
|
||||
restart: "always"
|
||||
command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord-tasks.conf
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker-compose stop
|
||||
docker-compose up -d
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
|
||||
docker pull docker.med-logic.ru/medicine:latest
|
||||
|
||||
(cd /root/medicine-config/medicine &&
|
||||
docker-compose stop &&
|
||||
docker-compose up -d
|
||||
)
|
||||
|
||||
docker rmi $(docker images -f "dangling=true" -q)
|
||||
Loading…
Reference in New Issue