-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
55 lines (54 loc) · 1.42 KB
/
docker-compose.dev.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
version: '3.6'
services:
redis:
restart: always
image: 'bitnami/redis:latest'
environment:
- "ALLOW_EMPTY_PASSWORD=yes"
ports:
- "6379:6379"
app:
restart: always
build:
context: ./webclient
dockerfile: Dockerfile.dev
volumes:
- ./webclient/src:/app/src:ro
ports:
- "3000:3000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.app.rule=PathPrefix(`/`)"
- "traefik.http.routers.app.entrypoints=web"
api:
restart: always
env_file:
- .env
build: ./
command: "/start-reload.sh"
environment:
JWT_SECRET_KEY: "NotAProdSecret"
volumes:
- ./aiplayground:/app/aiplayground:ro
- ../redorm/redorm:/usr/local/lib/python3.8/site-packages/redorm:ro
ports:
- 8000:80
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=PathPrefix(`/api/v1`, `/socket.io/`)"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.middlewares.api.stripprefix.prefixes=/api/v1"
- "traefik.http.routers.api.middlewares=api"
traefik:
image: "traefik:v2.3"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"