changed docker volume for db to a volume with a dedicated data path

This commit is contained in:
Jens Heinitz
2021-06-11 10:03:17 +02:00
parent 3d05eeab9c
commit 77eb6df54e
4 changed files with 21 additions and 2 deletions

View File

@@ -88,6 +88,15 @@ services:
volumes:
- "{{ awx_composedir }}/initdb.d:/docker-entrypoint-initdb.d:ro"
volumes:
awx_db:
name: {{ awx_prefix }}_awx_db
driver: local
driver_opts:
type: none
o: bind
device: {{ pg_volume_datapath | default(awx_composedir + '/postgres/data') }}
networks:
ansible-net:
traefik-net: