-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.03 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
services:
ghost:
image: ghost:latest
container_name: ghost-rtlx
hostname: ghost-RTLx
volumes:
- ./config.production.json:/var/lib/ghost/config.production.json:z
- ./ghost:/var/lib/ghost/content
# environment:
# NODE_ENV: production
restart: unless-stopped
networks:
- frontend
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.ghost-rtlx.tls.certresolver=myresolver
- traefik.http.routers.ghost-rtlx.rule=Host(`$DOMAIN`)
- traefik.http.services.ghost.loadbalancer.server.port=2368
depends_on:
- ghost-mysql
ghost-mysql:
image: mysql:8
container_name: ghost-mysql
hostname: ghost-mysql
expose:
- 3306
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_USER: user
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_DATABASE: ghost
restart: unless-stopped
networks:
- frontend
networks:
frontend:
external: true