-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1.12 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
version: '3'
services:
web:
build:
context: containers
dockerfile: php7.1-apache.Dockerfile
image: burnbright/php7.1-silverstripe
ports:
- "80:80"
volumes:
- ./sites:/var/www/html/
environment:
SS_ENVIRONMENT_TYPE: dev
SS_DATABASE_SERVER: 'database' # as per container above
SS_DATABASE_USERNAME: 'root'
SS_DATABASE_PASSWORD: 'password'
SS_DATABASE_CHOOSE_NAME: 'true'
SS_DEFAULT_ADMIN_USERNAME: 'admin'
SS_DEFAULT_ADMIN_PASSWORD: 'password'
XDEBUG_CONFIG: 'remote_host=docker.for.mac.host.internal remote_enable=0' # set this to 1 to enable debugging
SSMTP_HOST: 'mailhog'
SSMTP_PORT: '1025'
depends_on:
- database
- mailhog
database:
hostname: database # used by _ss_environment.php database host conf
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'password'
ports:
- "4306:3306"
volumes:
- db-data:/var/lib/mysql
mailhog:
hostname: mailhog
image: mailhog/mailhog:latest
ports:
- "1025:1025"
- "8025:8025"
volumes:
db-data: