-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1.14 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
version: '3.7'
services:
wordpress:
image: wordpress:6
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD_FILE: /run/secrets/mysql-password
WORDPRESS_DB_NAME: wordpress
networks:
public:
wordpress:
volumes:
- wordpress:/var/www/html
secrets:
- mysql-password
deploy:
labels:
traefik.http.routers.wordpress.rule: Host(`bad-belzig.klima-daten.de`)
traefik.http.routers.wordpress.tls: "true"
traefik.http.routers.wordpress.tls.certresolver: default
traefik.docker.network: public
traefik.http.services.wordpress.loadbalancer.server.port: 80
traefik.enable: "true"
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql-password
networks:
public:
wordpress:
volumes:
- db:/var/lib/mysql
secrets:
- mysql-password
secrets:
mysql-password:
external: true
networks:
public:
external: true
wordpress:
external: true
volumes:
wordpress:
db: