-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-etherpad.yml
75 lines (75 loc) · 2.77 KB
/
docker-compose-etherpad.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
65
66
67
68
69
70
71
72
73
74
75
# Please replace all the values that start with CHANGE_ME.
version: '3'
services:
app:
environment:
# Title of the Etherpad Lite instance. Defaults to "Etherpad".
- ETHERPAD_TITLE=Decidim pads
# Port of the Etherpad Lite instance. Defaults to 9001.
- ETHERPAD_PORT=9001
# If set, an admin account is enabled for Etherpad, and the /admin/ interface is accessible via it.
- ETHERPAD_ADMIN_PASSWORD=CHANGE_ME_ADMIN_PASSWORD
# If the admin password is set, this defaults to "admin". Otherwise the user can set it to another username.
- ETHERPAD_ADMIN_USER=CHANGE_ME_ADMIN_USER
# Type of databse to use. Defaults to mysql.
- ETHERPAD_DB_TYPE=mysql
# Hostname of the database to use. Defaults to mysql.
- ETHERPAD_DB_HOST=mysql
# By default Etherpad Lite will attempt to connect as root to the database container.
- ETHERPAD_DB_USER=root
# Password to use, mandatory. If legacy links are used and ETHERPAD_DB_USER is root, then MYSQL_ENV_MYSQL_ROOT_PASSWORD is automatically used.
- ETHERPAD_DB_PASSWORD=CHANGE_ME_PASSWORD
# The database to use. Defaults to etherpad. If the database is not available, it will be created when the container is launched (only if the database type is either mysql or postgres, and the user need to have the right to create the database).
- ETHERPAD_DB_NAME=etherpad
# The charset to use. Defaults to utf8mb4.
- ETHERPAD_DB_CHARSET=utf8mb4
# if file APIKEY.txt is missing, the variable value is used to provision it
- ETHERPAD_API_KEY=CHANGE_ME_API_KEY
image: 'tvelocity/etherpad-lite'
deploy:
replicas: 1
update_config:
parallelism: 1
restart_policy:
condition: on-failure
labels:
- com.df.notify=true
- com.df.port=9001
- com.df.serviceDomain=CHANGE_ME_PADS_SERVER_HOST_NAME
proxy:
image: dockerflow/docker-flow-proxy
ports:
- 80:80
- 443:443
environment:
- LISTENER_ADDRESS=swarm-listener
- MODE=swarm
deploy:
replicas: 1
restart_policy:
condition: on-failure
swarm-listener:
image: dockerflow/docker-flow-swarm-listener
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove
deploy:
replicas: 1
restart_policy:
condition: on-failure
mysql:
environment:
- MYSQL_ROOT_PASSWORD=CHANGE_ME_PASSWORD
image: 'mysql:5.7'
volumes:
- mysql:/var/lib/mysql
deploy:
replicas: 1
update_config:
parallelism: 1
restart_policy:
condition: on-failure
volumes:
mysql: