-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
mobilizon.yml
63 lines (59 loc) · 2.15 KB
/
mobilizon.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
# DOMAIN=example.com docker stack deploy -c mobilizon.yml mobilizon
# mobilizon_ctl users.new "[email protected]" --admin --password "myp@ssw0rd"
# chown -R 65534:65534 uploads/
# Don't change domain name
services:
web:
image: ${IMAGE:-framasoft/mobilizon}:${VERSION:-4.1.0}
environment:
- DOCKER=true
- MIX_ENV=${MIX_ENV:-prod}
- MOBILIZON_INSTANCE_NAME=Mobilizon
- MOBILIZON_INSTANCE_HOST=${DOMAIN:-mobilizon.localhost}
- MOBILIZON_INSTANCE_EMAIL=${ADMIN_EMAIL:[email protected]}
- MOBILIZON_REPLY_EMAIL=${ADMIN_EMAIL:[email protected]}
- MOBILIZON_ADMIN_EMAIL=${ADMIN_EMAIL:[email protected]}
- MOBILIZON_INSTANCE_REGISTRATIONS_OPEN=true
- MOBILIZON_DATABASE_PASSWORD=myp@ssw0rd
- MOBILIZON_DATABASE_USERNAME=mobilizon
- MOBILIZON_DATABASE_DBNAME=mobilizon
- MOBILIZON_DATABASE_HOST=postgres
- MOBILIZON_SMTP_SERVER=${SMTP_HOST}
- MOBILIZON_SMTP_HOSTNAME=${SMTP_HOST}
- MOBILIZON_SMTP_PORT=${SMTP_PORT:-587}
- MOBILIZON_SMTP_SSL=${SMTP_SSL:-false}
- MOBILIZON_SMTP_USERNAME=${SMTP_USERNAME}
- MOBILIZON_SMTP_PASSWORD=${SMTP_PASSWORD}
volumes:
- ${VOLUME_PATH}uploads:/var/lib/mobilizon/uploads
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.mobilizon-${NUMBER:-1}.rule=Host(`${DOMAIN:-mobilizon.localhost}`)
- traefik.http.routers.mobilizon-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.mobilizon-${NUMBER:-1}.service=mobilizon-${NUMBER:-1}
- traefik.http.routers.mobilizon-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.mobilizon-${NUMBER:-1}.loadbalancer.server.port=4000
networks:
- internal
- traefik
postgres:
image: postgis/postgis:${POSTGIS_VERSION:-16-3.4}
environment:
- POSTGRES_DB=mobilizon
- POSTGRES_USER=mobilizon
- POSTGRES_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
uploads:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net