-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.01 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
49
50
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ufg
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- ufg_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
auth-service:
build:
context: ./authentication
dockerfile: Dockerfile
environment:
DB_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/ufg
JWT_SECRET: ${JWT_SECRET}
JWT_ISSUER: heyteam-auth
JWT_AUDIENCE: ufg-game
ports:
- "8081:8080"
networks:
- ufg_net
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
signaling:
build: ./signaling_server
ports:
- "8080:8080"
restart: unless-stopped
networks:
- ufg_net
networks:
ufg_net:
driver: bridge
volumes:
postgres_data: