forked from shadowsocks/shadow-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (83 loc) · 2.29 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.3'
services:
https-portal:
image: steveltn/https-portal:1.5.0
volumes:
- reverse_proxy_data:/var/lib/https-portal
ports:
- 80:80
- 443:443
depends_on:
- wordpress
- sshub
# restart option is ignored in swarm mode.
restart: always
# deploy is only effective in swarm mode.
#deploy:
# restart_policy:
# condition: on-failure
# delay: 5s
# max_attempts: 20
# window: 60s
environment:
DOMAINS: "${DOMAIN_NAME} -> http://wordpress"
STAGE: "${STAGE}"
#STAGE: "local" or "production"
db:
image: mysql:8.0.14
command: --default-authentication-plugin=mysql_native_password
volumes:
- db_data:/var/lib/mysql
- ./backup/database/database_backup.sql.gz:/docker-entrypoint-initdb.d/a_database_backup.sql.gz
# restart option is ignored in swarm mode.
restart: always
# deploy is only effective in swarm mode.
#deploy:
# restart_policy:
# condition: on-failure
# delay: 5s
# max_attempts: 20
# window: 60s
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: wordpress
wordpress:
depends_on:
- db
image: wordpress:5.0.3-php7.1-apache
# restart option is ignored in swarm mode.
restart: always
# deploy is only effective in swarm mode.
#deploy:
# restart_policy:
# condition: on-failure
# delay: 5s
# max_attempts: 20
# window: 60s
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./website:/var/www/html
sshub:
image: sshub/ssshop:1.4.0
depends_on:
- db
environment:
NODE_ENV: production
DATABASE_HOST: db
DATABASE_USER: root
DATABASE_PORT: 3306
DATABASE_PASSWORD: ${MYSQL_PASSWORD}
# restart option is ignored in swarm mode.
restart: always
# deploy is only effective in swarm mode.
#deploy:
# restart_policy:
# condition: any
# delay: 5s
# max_attempts: 20
volumes:
db_data:
reverse_proxy_data: