mysql -> postgresql
This commit is contained in:
parent
96655354b7
commit
ac77827d0b
|
@ -16,7 +16,8 @@ volumes:
|
|||
|
||||
services:
|
||||
ephemera:
|
||||
image: aavgoustinos/ephemera:latest
|
||||
#image: aavgoustinos/ephemera:latest
|
||||
image: avgoustinos/ephemera_v1:latest
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
networks:
|
||||
- ephemera-net
|
||||
|
@ -35,18 +36,16 @@ services:
|
|||
window: 120s
|
||||
logging:
|
||||
driver: 'journald'
|
||||
db:
|
||||
image: mysql:5.7
|
||||
ephemera_postgres_db:
|
||||
image: postgres
|
||||
environment:
|
||||
# MYSQL_ROOT_PASSWORD={{ ephemera_mysql_root_password }}
|
||||
# MYSQL_PASSWORD={{ ephemera_mysql_password }}
|
||||
# MYSQL_USER=ephemera
|
||||
MYSQL_DATABASE: 'django-app-db'
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
|
||||
POSTGRES_DB=postgres
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
networks:
|
||||
- ephemera-net
|
||||
volumes:
|
||||
- mysql_db_data:/var/lib/mysql
|
||||
- mysql_db_data:/var/lib/postgresql/data
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
|
|
Loading…
Reference in New Issue