-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
65 lines (57 loc) · 1.37 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
networks:
dev_network:
driver: bridge
services:
relay-db:
container_name: relay-db
image: postgres:15-alpine
env_file:
- .env
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- ./src/main/resources/db/migration:/docker-entrypoint-initdb.d/
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USERNAME} -d ${DATABASE_NAME} || exit 1"]
interval: 10s
retries: 10
start_period: 60s
timeout: 10s
networks:
- dev_network
ports:
- "5432:5432"
relay-app-jvm:
container_name: relay-app-jvm
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.jvm
depends_on:
relay-db:
condition: service_healthy
ports:
- "6724:6724"
networks:
- dev_network
relay-app-native:
container_name: relay-app-native
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.native
depends_on:
relay-db:
condition: service_healthy
ports:
- "6725:6724"
networks:
- dev_network
cloudflared-tunnel:
container_name: cloudflared-tunnel
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel --no-autoupdate run --token