-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 865 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 865 Bytes
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
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: Dockerfile
image: akthakorn/vue-job-project-frontend:latest
ports:
- "8080:80"
# depends_on:
# api:
# condition: service_healthy
networks:
- app-network
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
api:
build:
context: ./data
dockerfile: Dockerfile
image: akthakorn/vue-job-project-api:latest
command: -h 0.0.0.0 -p 8001 -s ./public jobs.json
ports:
- "8001:8000"
init: true
volumes:
- ./data:/data
restart: unless-stopped
networks:
- app-network
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000"] # Checks if API is responding
# interval: 10s
# timeout: 5s
# retries: 3
networks:
app-network:
driver: bridge