-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (50 loc) · 1.39 KB
/
compose.yml
File metadata and controls
52 lines (50 loc) · 1.39 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
51
52
services:
server:
restart: always
build:
dockerfile: "./server.Dockerfile"
context: "./server"
image: 7cav/cavapps-server:latest
container_name: cavapps-server
ports:
- "4000:4000"
environment:
API_TOKEN:
CLIENT_TOKEN:
working_dir: /server
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000"]
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
networks:
- cavapps-network
client:
restart: always
build:
context: ./client
dockerfile: ./client.Dockerfile
image: 7cav/cavapps-client:latest
container_name: cavapps-client
volumes:
- ./client:/client
ports:
- "80:3000"
environment:
NEXT_PUBLIC_CLIENT_TOKEN:
COMBAT_API_URL: http://server:4000/roster/combat
RESERVE_API_URL: http://server:4000/roster/reserves
NEXT_PUBLIC_INDIVIDUAL_API_URL: http://server:4000/roster/individual
CACHE_TIMESTAMP_URL: http://server:4000/cache-timestamp
GROUP_API_URL: http://server:4000/roster/groups
working_dir: /client
depends_on:
server:
condition: service_healthy
entrypoint: /bin/sh -c "until wget -q --spider http://server:4000; do echo 'Waiting for server...'; sleep 5; done; npm run build && npm run start"
networks:
- cavapps-network
networks:
cavapps-network:
driver: bridge