-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (53 loc) · 1.52 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
51
52
53
54
55
56
57
58
version: '3.1'
services:
# apigw:
# container_name: 'apigw'
# image: traefik:alpine #The official Traefik docker image
# command: --api --docker #Enables the web UI and tells Træfik to listen to docker
# ports:
# - "80:80" #The HTTP port
# - "443:443"
# - "8080:8080" #The Web UI (enabled by --api)
# # labels:
# # - "traefik.domain=example.com"
# # - "traefik.frontend.rule=Host:example.com"
# # depends_on:
# # - app
# # - staticfile
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events
# - ./traefik.toml:/etc/traefik/traefik.toml
# - ./acme.json:/acme.json
# healthcheck:
# test: ["CMD", "traefik", "healthcheck"]
# interval: 10s
# timeout: 3s
# retries: 3
# restart: always
forum:
image: ubuntu-tw-www
restart: always
volumes:
- /data/docker/www/data:/var/www/
- /data/docker/www/letsencrypt:/etc/letsencrypt
- /data/docker/www/dhparam.pem:/etc/ssl/certs/dhparam.pem
- /data/docker/www/lighttpd/:/etc/lighttpd
ports:
- 80:80
- 443:443
db:
image: mariadb
restart: always
env_file: 'docker.env'
labels:
- "traefik.enable=false"
volumes:
- /data/docker/db/data:/var/lib/mysql
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
adminer:
image: adminer
restart: always
labels:
- "traefik.enable=false"
ports:
- 8080:8080