This repository has been archived by the owner on May 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.dist.yml
59 lines (54 loc) · 1.96 KB
/
docker-compose.dist.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
version: '2'
services:
mysqld:
image: mysql:5.7
# Uncomment if you want to expose the MySQL server to your host, e.g. for using a database management GUI application
# ports:
# - '3306:3306'
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=secret
markdown:
build: 'src/athene2-editor-server'
composer:
image: composer:1.8
volumes:
# For macOS, add `:cached` to every volume for improved performance, see also https://docs.docker.com/docker-for-mac/osxfs-caching/#semantics
- ./composer.json:/app/composer.json
- ./composer.lock:/app/composer.lock
- ./src/vendor:/app/src/vendor
composer-dev-tools:
image: composer:1.8
volumes:
# For macOS, add `:cached` to every volume for improved performance, see also https://docs.docker.com/docker-for-mac/osxfs-caching/#semantics
- ./dev-tools/composer.json:/app/composer.json
- ./dev-tools/composer.lock:/app/composer.lock
- ./dev-tools/vendor:/app/vendor
athene2:
build: .
links:
- mysqld:mysqld
- markdown:markdown
ports:
- '4567:80'
volumes:
# For macOS, add `:delegated` to every volume for improved performance, see also https://docs.docker.com/docker-for-mac/osxfs-caching/#semantics
- ./dev-tools/vendor:/var/www/html/dev-tools/vendor
- ./php-cs-fixer.config.php:/var/www/html/php-cs-fixer.config.php
- ./phpunit.xml:/var/www/html/phpunit.xml
- ./src/config:/var/www/html/src/config
- ./src/lang:/var/www/html/src/lang
- ./src/module:/var/www/html/src/module
- ./src/public:/var/www/html/src/public
- ./src/test:/var/www/html/src/test
- ./src/vendor:/var/www/html/src/vendor
environment:
- PHP_ENV=development
# Uncomment if you want PhpMyAdmin on localhost:8080
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# links:
# - mysqld:db
# ports:
# - '8080:80'