Skip to content

Commit

Permalink
Add updated docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Dec 16, 2024
1 parent 9d20f40 commit 2f9bea0
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions compose_files/pulp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: '3'
version: "3"
services:
postgres:
image: "docker.io/library/postgres:13"
platform: linux/amd64
ports:
- "5434:5432"
environment:
POSTGRES_USER: pulp
POSTGRES_PASSWORD: password
POSTGRES_DB: pulp
POSTGRES_INITDB_ARGS: '--auth-host=scram-sha-256'
POSTGRES_HOST_AUTH_METHOD: 'scram-sha-256'
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
POSTGRES_HOST_AUTH_METHOD: "scram-sha-256"
volumes:
- "pg_data:/var/lib/postgresql"
- "./assets/postgres/passwd:/etc/passwd:Z"
Expand All @@ -22,6 +23,7 @@ services:

migration_service:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
depends_on:
postgres:
condition: service_healthy
Expand All @@ -30,10 +32,11 @@ services:
volumes:
- "./assets/settings.py:/etc/pulp/settings.py:z"
- "./assets/certs:/etc/pulp/certs:z"
- "pulp:/var/lib/pulp"
- "pulp:/var/lib/pulp"

set_init_password_service:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
command: set_init_password.sh
depends_on:
migration_service:
Expand All @@ -51,13 +54,14 @@ services:
- "redis_data:/data"
restart: always
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]

pulp_api:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
deploy:
replicas: 1
command: [ 'pulp-api' ]
command: ["pulp-api"]
depends_on:
migration_service:
condition: service_completed_successfully
Expand All @@ -77,9 +81,10 @@ services:

pulp_content:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
deploy:
replicas: 1
command: [ 'pulp-content' ]
command: ["pulp-content"]
depends_on:
migration_service:
condition: service_completed_successfully
Expand All @@ -98,7 +103,8 @@ services:

pulp_web:
image: "pulp/pulp-web:latest"
command: [ '/usr/bin/nginx.sh' ]
platform: linux/amd64
command: ["/usr/bin/nginx.sh"]
depends_on:
migration_service:
condition: service_completed_successfully
Expand All @@ -113,9 +119,10 @@ services:

pulp_worker:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
deploy:
replicas: 1
command: [ 'pulp-worker' ]
command: ["pulp-worker"]
depends_on:
migration_service:
condition: service_completed_successfully
Expand Down

0 comments on commit 2f9bea0

Please sign in to comment.