forked from dmstr/phd5-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
executable file
·38 lines (37 loc) · 1.04 KB
/
docker-compose.dev.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
# Development stack overrides
#
# Variables are populated with values from `.env`
#
version: '2'
services:
php:
build:
context: .
# FLAVOUR can be undefinied OR -debian
# undefined == alpine base image
# -debian == debian base image
dockerfile: Dockerfile${FLAVOUR}
ports:
- 80
depends_on:
- db
- redis
environment:
- DB_ENV_MYSQL_ROOT_PASSWORD=secret
# For host-volume development (permissions)
# For composer usage in container
- GITHUB_API_TOKEN
- APP_MAILER_USE_FILE_TRANSPORT=1
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./composer.json:/app/composer.json:delegated
- ./composer.lock:/app/composer.lock:delegated
- ./_host-volumes/runtime/mysql:/app/runtime/mysql:delegated
db:
command: --character-set-server=utf8 --collation-server=utf8_general_ci
image: percona:5.7
environment:
- MYSQL_ROOT_PASSWORD=secret
ports:
- '3306'