-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (58 loc) · 1.48 KB
/
docker-compose.yaml
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
services:
mysql:
image: mysql:8.0
container_name: mysql
restart: always
command: --authentication_policy=mysql_native_password
environment:
MYSQL_DATABASE: ghost
MYSQL_ROOT_PASSWORD: ghost
volumes:
- ./mysql:/var/lib/mysql
nginx:
image: nginxproxy/nginx-proxy:latest
container_name: nginx
restart: always
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs
- ./nginx/html:/usr/share/nginx/html
acme:
image: nginxproxy/acme-companion:latest
container_name: acme
restart: always
depends_on:
- nginx
environment:
NGINX_PROXY_CONTAINER: nginx
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./nginx/certs:/etc/nginx/certs
- ./nginx/html:/usr/share/nginx/html
- ./nginx/acme:/etc/acme.sh
ghost:
image: ghost:latest
container_name: ghost
restart: always
depends_on:
- mysql
- nginx
- acme
env_file:
- .env
environment:
database__client: mysql
database__connection__host: mysql
database__connection__user: root
database__connection__password: ghost
database__connection__database: ghost
url: https://${URL}
VIRTUAL_PORT: 2368
VIRTUAL_HOST: ${DOMAIN_NAME}
LETSENCRYPT_HOST: ${DOMAIN_NAME}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
volumes:
- ./ghost:/var/lib/ghost/content