Skip to content

Commit

Permalink
docker: add Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
boozec committed Apr 27, 2024
1 parent ff23293 commit f486133
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
- PROCESS_ID
- RABBITMQ_URI
- SENTRY_DSN
- DATABASE_DSN
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- "5672:5672"
- "15672:15672"
networks:
- default
- camunda

zeebe: # https://docs.camunda.io/docs/self-managed/platform-deployment/docker/#zeebe
Expand Down Expand Up @@ -155,6 +156,20 @@ services:
profiles:
- kibana

postgres:
image: postgres:16-alpine
container_name: acmesky-workers-postgres
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- default
- camunda

workers:
image: acmesky-workers
container_name: acmesky-workers
Expand All @@ -164,9 +179,12 @@ services:
- PROCESS_ID=Process_ACME
- RABBITMQ_URI=amqp://guest:guest@rabbitmq:5672/
- SENTRY_DSN=${SENTRY_DSN}
- DATABASE_DSN=${DATABASE_DSN}
networks:
- camunda
depends_on:
postgres:
condition: service_started
zeebe:
condition: service_healthy
rabbitmq:
Expand All @@ -184,6 +202,7 @@ volumes:
zeebe:
elastic:
kibana:
postgres-data:

networks:
camunda:

0 comments on commit f486133

Please sign in to comment.