-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yaml
55 lines (54 loc) · 1.46 KB
/
docker-compose.staging.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
48
49
50
51
52
53
54
55
version: '3.6'
services:
admin_staging:
build:
context: backend/admin
restart: always
env_file:
- .env
ports:
- "28080:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/admin" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- app_network
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "100m" # file size
frontend_staging:
build:
context: frontend
args:
- FRONTEND_CDN_PREFIX=${FRONTEND_CDN_PREFIX}
ports:
- "18080:8080"
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
environment:
- FRONTEND_GRAPHQL_ENDPOINT_URI=${FRONTEND_GRAPHQL_ENDPOINT_URI}
- FRONTEND_GRAPHQL_INTERNAL_ENDPOINT_URI=${FRONTEND_GRAPHQL_INTERNAL_ENDPOINT_URI}
- FRONTEND_GRAPHQL_INTERNAL_ENDPOINT_ADMIN_SECRET=${FRONTEND_GRAPHQL_INTERNAL_ENDPOINT_ADMIN_SECRET}
- FRONTEND_CDN_PREFIX=${FRONTEND_CDN_PREFIX}
- FRONTEND_REFRESH_CACHE_TOKEN=${FRONTEND_REFRESH_CACHE_TOKEN}
networks:
- app_network
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "100m" # file size
networks:
app_network:
name: app_network_webgateway
external: true