-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: tee-postgres
environment:
POSTGRES_USER: tee
POSTGRES_PASSWORD: tee
POSTGRES_DB: tee
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tee"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
tee-api:
build:
context: ./services/api
dockerfile: Dockerfile
container_name: tee-api
ports:
- "8080:8080"
volumes:
# Mount Docker socket to spawn sibling containers
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=tee
- DB_PASSWORD=tee
- DB_NAME=tee
- LOG_LEVEL=debug
# gVisor is ENABLED by default (comment out to disable)
# Uncomment the line below to disable gVisor (DEV ONLY!)
# - DISABLE_GVISOR=true
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres-data: