-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
phpbb.yml
51 lines (47 loc) · 1.4 KB
/
phpbb.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
# DOMAIN=example.com docker stack deploy -c phpbb.yml phpbb
services:
phpbb:
image: bitnami/phpbb:${VERSION:-3.3.4}
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- PHPBB_DATABASE_USER=root
- PHPBB_DATABASE_NAME=phpbb
- PHPBB_DATABASE_PASSWORD=myp@ssw0rd
- PHPBB_USERNAME=${PHPBB_USERNAME:-admin}
- PHPBB_PASSWORD=${PHPBB_PASSWORD:-myp@ssw0rd}
- PHPBB_EMAIL=${EMAIL:[email protected]}
volumes:
- ${VOLUME_PATH}phpbb:/bitnami
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.phpbb-${NUMBER:-1}.rule=Host(`${DOMAIN:-phpbb.localhost}`)
- traefik.http.routers.phpbb-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.phpbb-${NUMBER:-1}.service=phpbb-${NUMBER:-1}
- traefik.http.routers.phpbb-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.phpbb-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- traefik
- internal
mariadb:
image: mariadb:10.5.9
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=phpbb
- MYSQL_USER=phpbb
- MYSQL_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql
networks:
- internal
volumes:
phpbb:
mariadb:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net