-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.57 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
version: '3.1'
services:
# Webserver configuration
#
# Contains "symlink" type connection between public/ folder
# and /var/www/html on the container.
web:
build: .
ports:
- '80:80'
links:
- database:database
volumes:
- './public:/var/www/html'
- './_ss_environment.php:/var/www/_ss_environment.php'
# Database configuration
#
# Uses empty `root` password for database connection. Can also
# be identified on the "web" container by the hostname "database"
# Also contains a persistant volume for database data.
database:
image: mysql
ports:
- '3306:3306'
volumes:
- 'db-data:/var/lib/mysql'
restart: always
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
# Composer configuration
#
# Allows composer dependancies to be installed without composer
# being installed locally
composer:
image: composer/composer:php5
volumes:
- './public:/app'
- $SSH_AUTH_SOCK:/ssh-agent
environment:
SSH_AUTH_SOCK: /ssh-agent
# SSPAK configuration
#
# Tooling for saving and loading snapshots for SilverStripe
# websites.
#
# Snapshots should be located in the snapshots/ folder as this
# is mounted on the container
#
# Contains link to database and website content as SSPAK requires
# Access to framework and _ss_environment.php
sspak:
image: brettt89/sspak
links:
- database:database
volumes:
- './snapshots:/app/snapshots'
- './_ss_environment.php:/app/_ss_environment.php:ro'
- './public:/app/public'
volumes:
db-data: