changed docker volume for db to a volume with a dedicated data path
This commit is contained in:
parent
3d05eeab9c
commit
77eb6df54e
@ -62,8 +62,7 @@ traefik_http_port: 8013
|
||||
http_port: 8013
|
||||
https_port: 8043
|
||||
sdb_port_base: 15899
|
||||
#database_dump_file: pg_dumpall_awx_17.1.0_2021-05-30_23.00.01.sql.gz
|
||||
database_dump_file: pg_dump_awx_2021-06-09_11.23.45.sql.gz
|
||||
database_dump_file: pg_dump_awx_2021-06-11_05.00.01.sql.gz
|
||||
docker_registry: pi4.seboto.net:50000
|
||||
#
|
||||
# AWX Host for Traefik
|
||||
|
BIN
roles/awx/files/pg_dump_awx_2021-06-11_05.00.01.sql.gz
Normal file
BIN
roles/awx/files/pg_dump_awx_2021-06-11_05.00.01.sql.gz
Normal file
Binary file not shown.
@ -386,6 +386,17 @@
|
||||
group: "{{ awx_group }}"
|
||||
mode: '0644'
|
||||
|
||||
#
|
||||
# Create directory to store the postrgres database data files
|
||||
#
|
||||
- name: create directory {{ pg_volume_datapath | default(awx_composedir + '/postgres/data') }}
|
||||
file:
|
||||
path: "{{ pg_volume_datapath | default(awx_composedir + '/postgres/data') }}"
|
||||
state: directory
|
||||
owner: "{{ awx_user }}"
|
||||
group: "{{awx_group }}"
|
||||
mode: '0750'
|
||||
|
||||
#
|
||||
# Create directory to store the database dumps
|
||||
#
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user