forked from ether/etherpad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 906 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 906 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
# This Config is just for etherpad service
version: "3.3"
services:
etherpad-lite-dev:
build:
context: .
env_file:
- "docker-compose.env"
- ".env"
image: tailchat-etherpad
environment:
PAD_OPTIONS_SHOW_LINE_NUMBERS: "false"
labels:
- "traefik.enable=true"
- "traefik.http.routers.ep.rule=PathPrefix(`/ep/`)"
- "traefik.http.services.ep.loadbalancer.server.port=9001"
- "traefik.http.middlewares.ep-prefix.stripprefix.prefixes=/ep/"
- "traefik.http.routers.ep.middlewares=ep-prefix"
# 路由转发
traefik:
image: traefik:v2.1
command:
- "--api.insecure=true" # Don't do that in production!
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
ports:
- 127.0.0.1:12000:80
- 127.0.0.1:12001:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro