Move postgres data into a non-mounted volume
This commit is contained in:
parent
49d4d70602
commit
b67f4929c0
@ -17,11 +17,11 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./local.env
|
- ./local.env
|
||||||
command: /bin/sh -c "python3 manage.py collectstatic --noinput ; python3 manage.py runserver 0.0.0.0:8000"
|
command: /bin/sh -c "python3 manage.py collectstatic --noinput ; python3 manage.py runserver 0.0.0.0:8000"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mdillon/postgis:9.6-alpine
|
image: mdillon/postgis:9.6-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- .containers/db:/var/lib/postgresql/data
|
- postgres-data-volume:/var/lib/postgresql/data
|
||||||
- ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
- ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:5432:5432"
|
- "127.0.0.1:5432:5432"
|
||||||
@ -33,9 +33,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 1025:1025
|
- 1025:1025
|
||||||
- 8025:8025
|
- 8025:8025
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
image: memcached:1.4
|
image: memcached:1.4
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
weblate-data:
|
weblate-data:
|
||||||
|
postgres-data-volume:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user