-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (45 loc) · 1.37 KB
/
docker-compose.dev.yml
File metadata and controls
45 lines (45 loc) · 1.37 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
version: "3.8"
services:
frontend:
restart: on-failure
build:
dockerfile: ./docker/Dockerfile.dev
context: ./frontend
volumes:
- ./frontend/package.json:/frontend/package.json
- ./frontend/src:/frontend/src/
- ./frontend/public:/frontend/public/
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
server:
restart: always
build:
dockerfile: ./Dockerfile
context: ./server
command:
- --config=/server/data.yaml
- --port=8001
- --fixed-stops=/server/fixed_stops.json
- -vvv
volumes:
- ./server/data.yaml:/server/data.yaml:ro
- ./server/app.py:/server/app.py
- ./server/modules:/server/modules
- ./server/fixed_stops.json:/server/fixed_stops.json:ro
environment:
- WATCHFILES_FORCE_POLLING=true
prometheus:
image: prom/prometheus:latest
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
nginx:
image: nginx:alpine
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf
ports:
- 3001:80