-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yml
64 lines (58 loc) · 1.81 KB
/
docker-compose.development.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
52
53
54
55
56
57
58
59
60
61
62
63
64
# Overlay to docker-compose.yml file for development
version: "3.6"
services:
proxy:
ports:
- 80:80
command:
# Enable Docker in Traefik, so that it reads labels from Docker services
- --providers.docker
# Enable the access log, with HTTP requests
- --accesslog
# Enable the Traefik log, for configurations and errors
# Use DEBUG for more verbosity
- --log.level=INFO
# Enable the Dashboard and API
- --api
# Enable the Dashboard and API in insecure mode for local development
- --api.insecure=true
# Use HTTP (port 80) as entrypoint
- --entrypoints.web.address=:80
celeryworker:
build:
context: ./backend
environment:
- SERVER_HOST=http://${DOMAIN?Variable not set}
volumes:
- ./backend/app:/work/app
backend:
build:
context: ./backend
user: ${USER?User not set}
volumes:
- ./backend/app:/work/app
environment:
- SERVER_HOST=http://${DOMAIN?Variable not set}
command: dev
labels:
# Service is served on port 5000
- traefik.http.services.${STACK_NAME?Variable not set}-backend.loadbalancer.server.port=5000
# Use web port
- traefik.http.routers.${STACK_NAME?Variable not set}-backend.entrypoints=web
frontend:
build:
context: ./frontend
dockerfile: development.Dockerfile
user: ${USER?User not set}
volumes:
- ./frontend/src/:/app/src/
command: start
labels:
# Service served on port 3000
- traefik.http.services.${STACK_NAME?Variable not set}-frontend.loadbalancer.server.port=3000
# Use web port
- traefik.http.routers.${STACK_NAME?Variable not set}-frontend.entrypoints=web
networks:
traefik-public:
# For local dev, don't expect an external Traefik network
external: false