-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.39 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
55
version: "3"
services:
ghost:
image: ghost:${GHOST_VERSION}
restart: always
container_name: ${GHOST_CONTAINER_NAME}
depends_on:
- db
environment:
url: ${GHOST_URL}
database__client: mysql
database__connection__host: ${DB_HOST}
database__connection__user: ${DB_USER}
database__connection__password: ${DB_PASSWORD}
database__connection__database: ${DB_NAME}
mail__transport: SMTP
mail__options__service: ${SMTP_SERVICE}
mail__options__auth__user: ${SMTP_USER}
mail__options__auth__pass: ${SMTP_PASSWORD}
volumes:
- ${GHOST_DATA}:/var/lib/ghost/content
db:
image: mysql:${MYSQL_VERSION}
restart: always
container_name: ${MYSQL_CONTAINER_NAME}
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- ${MYSQL_DATA}:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
container_name: ${PMA_CONTAINER_NAME}
depends_on:
- db
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- "8080:80"
nginx:
image: nginx:${NGINX_VERSION}
restart: always
container_name: ${NGINX_CONTAINER_NAME}
depends_on:
- ghost
ports:
- "80:80"
- "443:443"
volumes:
- ${CERT_PATH}:/etc/nginx/certs
- ./www:/usr/share/nginx/html
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d