-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc.local-build.yml
51 lines (47 loc) · 1.15 KB
/
dc.local-build.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
version: "3.8"
# This compose file is for running services "like in production" on dev machine.
# But instead of pulling images, we build them locally, so that we could debug Docker builds themselves.
services:
nginx:
image: nginx:1.25-alpine
networks:
- localNetwork
ports:
- "8001:80"
volumes:
- ./nginx-local/nginx.local-cors.conf:/etc/nginx/conf.d/default.conf
backend:
build:
context: backend
networks:
- localNetwork
ports:
- "8000:8000"
restart: always
# healthcheck:
# test: curl --fail http://localhost:8000/check/health || exit 1
# interval: 3s
# retries: 50
# start_period: 5s
# timeout: 5s
webapp:
build:
context: webapp
networks:
- localNetwork
ports:
- "8080:80"
restart: always
depends_on:
- backend
# condition: service_healthy
environment:
- WEBAPP_BACKEND_URL=http://localhost:8001
- WEBAPP_ALLOW_INDEXING=true
logging:
driver: "json-file"
options:
tag: "{{.ImageName}}|{{.Name}}"
networks:
localNetwork:
name: helloworld-fullstack-k8s-local-build