postgres
This commit is contained in:
parent
1086c62619
commit
f05ee39688
3
playbooks/roles/gitea/meta/main.yml
Normal file
3
playbooks/roles/gitea/meta/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: postgres
|
||||
7
playbooks/roles/postgres/defaults/main.yml
Normal file
7
playbooks/roles/postgres/defaults/main.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
postgres_container_name: postgres
|
||||
postgres_port: 5432
|
||||
postgres_user: tobi
|
||||
postgres_password: risICE3
|
||||
postgres_data_dir: /var/lib/postgresql/data/pgdata
|
||||
postgres_volume: /opt/postgresData
|
||||
14
playbooks/roles/postgres/tasks/main.yml
Normal file
14
playbooks/roles/postgres/tasks/main.yml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Run PostgreSQL Docker container
|
||||
docker_container:
|
||||
name: "{{ postgres_container_name }}"
|
||||
image: postgres
|
||||
state: started
|
||||
ports:
|
||||
- "{{ postgres_port }}:5432"
|
||||
env:
|
||||
POSTGRES_USER: "{{ postgres_user }}"
|
||||
POSTGRES_PASSWORD: "{{ postgres_password }}"
|
||||
PGDATA: "{{ postgres_data_dir }}"
|
||||
volumes:
|
||||
- "{{ postgres_volume }}:{{ postgres_data_dir }}"
|
||||
Loading…
x
Reference in New Issue
Block a user