-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.compose.yaml
47 lines (44 loc) · 1.01 KB
/
dev.compose.yaml
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
version: "3.6"
services:
portfolio:
platform: linux/amd64
build:
context: ./portfolio_next
args:
- CUJO_SERVICE_URL=https://gql.danclarke.dev
depends_on:
service:
condition: service_healthy
ports:
- "3000:3000"
- "3001:3001" # assets
environment:
- CUJO_SERVICE_URL=http://service:5001
- CUJO_REVALIDATE_SECRET=12345
- NEXT_PUBLIC_GA_MEASUREMENT_ID=G-1234567890
networks:
- cujo
service:
build:
context: ./service
ports:
- "5001:5001"
expose:
- 5001
env_file:
- ./service/.env
- ./service/.sensitive-env
volumes:
- ./service/data.json:/cujo/data.json
- ./service/.env:/cujo/.env
- ./service/.sensitive-env:/cujo/.sensitive-env
healthcheck:
test: curl -f http://service:5001/status
interval: 30s
start_period: 10s
timeout: 3s
retries: 30
networks:
- cujo
networks:
cujo: