Skip to content

Commit

Permalink
Update compose file for running the backend/frontend dev servers
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey committed May 28, 2024
1 parent f971d86 commit baab261
Showing 1 changed file with 40 additions and 14 deletions.
54 changes: 40 additions & 14 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,56 @@
version: '2.4'
networks:
common:

services:
supervisor_1:
build: .
environment:
LOGGING_LEVEL: 'DEBUG'
LOGGING_LEVEL: "DEBUG"
backend_1:
environment:
LOGGING_LEVEL: 'DEBUG'
LOGGING_LEVEL: "DEBUG"
build: .
debug_1:
environment:
LOGGING_LEVEL: 'DEBUG'
build: .
ports:
- 8000:8000
command: debug
networks:
- common
frontend_1:
build:
context: .
dockerfile: Dockerfile-frontend
redis:
ports:
image: ${REDIS_IMAGE}
command: redis-server /usr/local/etc/redis/redis.conf
restart: always
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 15s
timeout: 30s
retries: 5
volumes:
- ./redis_data:/data
- ./config:/usr/local/etc/redis
networks:
- common
ports:
- 127.0.0.1:${HLL_REDIS_HOST_PORT:-6379}:6379
postgres:
image: ${POSTGRES_IMAGE}
environment:
# If a password is not defined this container will fail to create
POSTGRES_PASSWORD: ${HLL_DB_PASSWORD}
POSTGRES_USER: ${HLL_DB_USER}
POSTGRES_DB: ${HLL_DB_NAME}
PGDATA: /data
HLL_DB_NAME: ${HLL_DB_NAME}
HLL_DB_USER: ${HLL_DB_USER}
restart: always
healthcheck:
test:
["CMD", "pg_isready", "-U", "${HLL_DB_USER}", "-d", "${HLL_DB_NAME}"]
interval: 15s
timeout: 30s
retries: 5
start_period: 80s
volumes:
- ./db_data:/data
networks:
- common
ports:
- 127.0.0.1:${HLL_DB_HOST_PORT:-5433}:5432
- 127.0.0.1:${HLL_DB_HOST_PORT:-5433}:5432

0 comments on commit baab261

Please sign in to comment.