-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.53 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
version: '3.8'
services:
silverstripe:
container_name: php_ci_cd
image: php_ci_cd_image_prod
# build:
# context: .
# target: production
volumes:
- .:/var/www/html
depends_on:
database:
condition: service_healthy
redis:
condition: service_healthy
environment:
- DOCUMENT_ROOT=/var/www/html/public
- SS_TRUSTED_PROXY_IPS=*
- SS_ENVIRONMENT_TYPE=dev
- SS_DATABASE_SERVER=database
- SS_DATABASE_NAME=php_ci_cd
- SS_DATABASE_USERNAME=root
- SS_DATABASE_PASSWORD=
- SS_DEFAULT_ADMIN_USERNAME=admin
- SS_DEFAULT_ADMIN_PASSWORD=password
ports:
- 8000:80
database:
image: mysql:5.7
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- db-data:/var/lib/mysql
ports:
- '33060:3306'
healthcheck:
test: "exit 0"
redis:
image: "redis:alpine"
container_name: php_ci_cd_redis
volumes:
- redis-data:/data
- redis-conf:/usr/local/etc/redis/redis.conf
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379:6379
# command: redis-server --requirepass MDNcVb924a --loglevel warning
command: redis-server
healthcheck:
test: "exit 0"
volumes:
db-data:
redis-data:
redis-conf: