implemented draf for gitlab role

This commit is contained in:
2023-12-28 00:28:30 +01:00
parent 5da4637716
commit ebe3fca503
11 changed files with 139 additions and 24 deletions

View File

@@ -1,24 +1,8 @@
version: "3.7"
services:
database:
image: postgres:13-alpine
ports:
- "9432:5432"
environment:
- POSTGRES_PASSWORD={{database_password}}
- POSTGRES_USER={{database_username}}
- POSTGRES_DB={{database_databasename}}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U {{database_username}}"]
interval: 10s
timeout: 5s
retries: 6
volumes:
- type: volume
source: database
target: /var/lib/postgresql/data
{% include 'templates/docker-postgres-service.yml.j2' %}
application:
restart: unless-stopped