Merge pull request #54 from thewulf7/docker-patch-1

Fixing docker image for backend service and grouping them in network
This commit is contained in:
Chamika J
2024-10-25 16:57:25 +05:30
committed by GitHub

View File

@@ -10,9 +10,11 @@ services:
depends_on: depends_on:
backend: backend:
condition: service_started condition: service_started
networks:
- worklenz
backend: backend:
image: ghcr.io/worklenz/worklenz-frontend image: ghcr.io/worklenz/worklenz-backend
build: build:
context: ./worklenz-backend context: ./worklenz-backend
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -54,6 +56,8 @@ services:
- S3_URL - S3_URL
- S3_ACCESS_KEY_ID - S3_ACCESS_KEY_ID
- S3_SECRET_ACCESS_KEY - S3_SECRET_ACCESS_KEY
networks:
- worklenz
db: db:
image: postgres:15 image: postgres:15
@@ -66,6 +70,8 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
networks:
- worklenz
volumes: volumes:
- worklenz_postgres_data:/var/lib/postgresql/data - worklenz_postgres_data:/var/lib/postgresql/data
- ./worklenz-backend/database/:/docker-entrypoint-initdb.d - ./worklenz-backend/database/:/docker-entrypoint-initdb.d