19 lines
449 B
YAML
19 lines
449 B
YAML
- name: Create docker folder
|
|
ansible.builtin.file:
|
|
dest: "{{ docker_dir }}"
|
|
state: directory
|
|
mode: '0770'
|
|
|
|
- name: Put up the postgres container
|
|
community.docker.docker_container:
|
|
name: "{{container_name}}"
|
|
image: postgres:17.4
|
|
restart_policy: always
|
|
state: started
|
|
pull: true
|
|
ports:
|
|
- "{{ port }}:{{ app_port }}"
|
|
env:
|
|
CONNECTIONS: postgres_con
|
|
volumes:
|
|
- "dbgate-data:/root/.dbgate" |