forked from shift-org/shift-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.47 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "2"
volumes:
db: {}
services:
nginx:
image: nginx
restart: always
volumes:
- ./site/public/:/var/www/site/
- ./legacy/cal/:/opt/legacy/cal/
- ./backend/www/:/opt/backend/www/
- "${EVENTIMAGES}:/opt/backend/eventimages"
- ./services/nginx/:/opt/nginx/
- ./services/nginx/conf.d:/etc/nginx/conf.d
- ${LETSENCRYPT_WEBROOT}:/tmp/letsencrypt-auto
links:
- php
ports:
- "${NGINX_HTTPS_PORT}:443"
- "${NGINX_HTTP_PORT}:80"
entrypoint: /opt/nginx/entrypoint.sh
command: ["nginx", "-g", "daemon off;"]
db:
restart: always
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_HOST
volumes:
- db:/var/lib/mysql/
ports:
- 3306
hugo:
image: jojomi/hugo:0.37
volumes:
- ./site/:/src/
- ./site/public/:/output/
command: "hugo -v"
php:
build: ./services/php
restart: always
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_HOST
- SHIFT_DOMAIN
- NGINX_HTTPS_PORT
- CAL_ADMIN_PASSWORD
- SHIFT_EMAIL_LOG
- SMTP_HOST
- SMTP_USER
- SMTP_PASS
- SMTP_LOGIN
- SMTP_DOMAIN
links:
- db
volumes:
- ./backend/:/opt/backend/
- ./services/php/:/opt/php/
- ./legacy/:/opt/legacy
entrypoint: /opt/php/entrypoint.sh
command: php-fpm