-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (59 loc) · 1.67 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (59 loc) · 1.67 KB
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
64
65
66
version: '3.7'
services:
reverse-proxy:
image: traefik:2.1
restart: always
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml:ro
networks:
- traefik
container_name: traefik
ghost:
image: ghost:3
restart: always
environment:
database__client: mysql
database__connection__host: db
database__connection__user: ghost
database__connection__password: motdepasseutilisateurghost
database__connection__database: ghost
url: http://ghost.docker.localhost/
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.services.monblog.loadbalancer.server.port=2368"
- "traefik.http.routers.monblog.rule=Host(`ghost.docker.localhost`)"
- "traefik.http.routers.monblog.entrypoints=http"
volumes:
- www-data:/var/lib/ghost/content
networks:
- traefik
- lan
container_name: ghost
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: motdepasseutilisateurroot
MYSQL_USER: ghost
MYSQL_DATABASE: ghost
MYSQL_PASSWORD: motdepasseutilisateurghost
volumes:
- mysql-data:/var/lib/mysql
networks:
- lan
container_name: mysql
volumes:
mysql-data:
name: mysql-data
www-data:
name: www-data
networks:
lan:
name: lan
traefik:
name: traefik