-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (48 loc) · 1.59 KB
/
docker-compose.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
services:
traefik:
image: traefik:latest
container_name: traefik
command:
- '--log.level=DEBUG'
- '--api.dashboard=true'
- '--api.debug=true'
- '--api.insecure=true'
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
- '--entrypoints.web.address=:80'
ports:
- '8080:8080'
- '80:80'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
spaces:
build:
context: .
target: 'development-runner'
labels:
traefik.enable: 'true'
traefik.http.routers.spaces.entrypoints: 'web'
traefik.http.routers.spaces.rule: 'PathPrefix(`/`)'
develop:
watch:
- action: sync
path: ./
target: /app
ignore:
- .next/
- node_modules/
- action: rebuild
path: ./package.json
environment:
- NODE_ENV=development
element:
image: vectorim/element-web:latest
container_name: element
labels:
traefik.enable: 'true'
traefik.http.routers.element.entrypoints: 'web'
traefik.http.routers.element.rule: 'PathPrefix(`/element/`)'
traefik.http.routers.element.middlewares: 'element@docker'
traefik.http.middlewares.element.stripprefix.prefixes: '/element'
volumes:
- ./element.config.json:/app/config.json