-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1.21 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
networks:
frontend:
name: frontend
external: false
backend:
name: backend
external: false
services:
webboard:
build:
context: .
restart: unless-stopped
networks:
- frontend
- backend
volumes:
- ./config.php:/var/www/html/config.php
- ./data/images:/var/www/html/images
- ./data/files:/var/www/html/files
- ./data/store:/var/www/html/store
- ./data/user_uploads:/var/www/html/user_uploads
depends_on:
- mysql
labels:
- "traefik.enable=true"
- "traefik.http.services.webboard.loadbalancer.server.port=80"
- "traefik.http.routers.webboard.rule=Host(`smrcnn.smrealms.de`)"
mysql:
image: mysql:8.0
restart: unless-stopped
container_name: webboard-mysql
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: smr_cnn
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: smr_cnn
volumes:
- db_data:/var/lib/mysql
volumes:
db_data: