Skip to content

Commit

Permalink
Compose changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Dec 16, 2024
1 parent d622d57 commit 713737e
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions compose_files/pulp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
version: '3'
services:
postgres:
image: "docker.io/library/postgres:13"
image: "docker.io/library/postgres:16"
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 +21,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 +30,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,16 +52,19 @@ 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
ports:
- 8080:24817
hostname: pulp-api
user: pulp
volumes:
Expand All @@ -73,16 +77,21 @@ services:
PULP_ADMIN_PASSWORD: password
PULP_DOMAIN_ENABLED: "true"
PULP_API_ROOT: /api/pulp/
PULP_CONTENT_ORIGIN: "http://pulp.content:8081/"
PULP_CONTENT_PATH_PREFIX: "/pulp/content/"
restart: always

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
ports:
- 8081:24816
hostname: pulp-content
user: pulp
volumes:
Expand All @@ -94,11 +103,13 @@ services:
POSTGRES_SERVICE_HOST: postgres
PULP_DOMAIN_ENABLED: "true"
PULP_API_ROOT: /api/pulp/
PULP_CONTENT_ORIGIN: "http://pulp.content:8081/"
PULP_CONTENT_PATH_PREFIX: "/pulp/content/"
restart: always

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

pulp_worker:
image: "quay.io/redhat-services-prod/pulp-services-tenant/pulp:latest"
platform: linux/amd64
deploy:
replicas: 1
command: [ 'pulp-worker' ]
replicas: 2
command: ["pulp-worker"]
depends_on:
migration_service:
condition: service_completed_successfully
Expand All @@ -130,6 +142,9 @@ services:
POSTGRES_SERVICE_PORT: 5432
POSTGRES_SERVICE_HOST: postgres
PULP_DOMAIN_ENABLED: "true"
PULP_API_ROOT: /api/pulp/
PULP_CONTENT_ORIGIN: "http://pulp.content:8081/"
PULP_CONTENT_PATH_PREFIX: "/pulp/content/"
restart: always
volumes:
pulp:
Expand Down

0 comments on commit 713737e

Please sign in to comment.