Update to python 3.7 and add deploy policies
This commit is contained in:
@@ -2,6 +2,13 @@ version: '3.4'
|
||||
services:
|
||||
db:
|
||||
image: postgres:10
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
update_config:
|
||||
order: start-first
|
||||
|
||||
environment:
|
||||
- POSTGRES_USER_FILE=/run/secrets/DJANGO_DB_USER
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/DJANGO_DB_PASSWD
|
||||
@@ -15,6 +22,12 @@ services:
|
||||
|
||||
backend:
|
||||
image: registry.gitlab.com/sahkoinsinoorikilta/vtmk/web2.0-backend:latest
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
update_config:
|
||||
order: start-first
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user