Initial commit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: ../../backend
|
||||
dockerfile: Dockerfile
|
||||
args: { SERVICE: api }
|
||||
environment:
|
||||
API_ADDR: :8080
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
ports: ["127.0.0.1:8080:8080"]
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
restart: unless-stopped
|
||||
|
||||
signaling:
|
||||
build:
|
||||
context: ../../backend
|
||||
dockerfile: Dockerfile
|
||||
args: { SERVICE: signaling }
|
||||
environment: { SIGNALING_ADDR: ":8081" }
|
||||
ports: ["127.0.0.1:8081:8081"]
|
||||
restart: unless-stopped
|
||||
|
||||
keyserver:
|
||||
build:
|
||||
context: ../../backend
|
||||
dockerfile: Dockerfile
|
||||
args: { SERVICE: keyserver }
|
||||
ports: ["127.0.0.1:8082:8082"]
|
||||
restart: unless-stopped
|
||||
|
||||
push:
|
||||
build:
|
||||
context: ../../backend
|
||||
dockerfile: Dockerfile
|
||||
args: { SERVICE: push }
|
||||
ports: ["127.0.0.1:8083:8083"]
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-ee2e}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-ee2e}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
|
||||
volumes: ["postgres_data:/var/lib/postgresql/data", "../postgres/init.sql:/docker-entrypoint-initdb.d/001-init.sql:ro"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ee2e} -d ${POSTGRES_DB:-ee2e}"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user