Skip to content

Commit

Permalink
fix: docker compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kühnlein committed Feb 1, 2024
1 parent bbeb1d3 commit 1a501f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ MINIO_VERSION=latest
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
MONGO_ROOT_USER=mongoroot
MONGO_ROOT_PASSWORD=mongoroot
MONGO_ROOT_PASSWORD=mongoroot
NEXT_PUBLIC_API_URL=
11 changes: 3 additions & 8 deletions docker-compose.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ services:
restart: always
ports:
- 3000:3000
# Set environment variables directly in the docker-compose file
environment:
ENV_VARIABLE: ${ENV_VARIABLE}
NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
worker:
image: ghcr.io/jank1310/datadolphin:latest
command: node /app/worker/worker.js
restart:
always
# Set environment variables directly in the docker-compose file
restart: always
environment:
ENV_VARIABLE: ${ENV_VARIABLE}
NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
# STORAGE
minio:
image: minio/minio:${MINIO_VERSION}
Expand Down
26 changes: 9 additions & 17 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,16 @@ version: "3.7"
services:
app:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: app
worker-1:
extends:
file: docker-compose.yml
service: worker
worker-2:
extends:
file: docker-compose.yml
service: worker
worker-3:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: worker
# STORAGE
minio:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: minio
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
Expand All @@ -29,18 +21,18 @@ services:
- miniostorage:/data
temporal-postgresql:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: temporal-postgresql
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- temporal-network
volumes:
- postgresql:/var/lib/postgresql/data
- temporal-postgresql:/var/lib/postgresql/data
mongodb:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
Expand All @@ -50,7 +42,7 @@ services:
# TEMPORAL
temporal:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: temporal
networks:
- temporal-network
Expand All @@ -59,11 +51,11 @@ services:
- DB_PORT=5432
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PWD=${POSTGRES_PASSWORD}
- POSTGRES_SEEDS=postgresql
- POSTGRES_SEEDS=temporal-postgresql
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml
temporal-ui:
extends:
file: docker-compose.yml
file: docker-compose.base.yaml
service: temporal-ui
environment:
- TEMPORAL_ADDRESS=temporal:7233
Expand Down

0 comments on commit 1a501f2

Please sign in to comment.