-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.24 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
# Development stack overrides
#
# Variables are populated with values from `.env`
#
version: '2'
services:
api-php:
build: api
volumes:
# Mount source-code for development
- ./:/app
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- db
- redis
- mailcatcher
backend-php:
build: backend
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
# Mount source-code for development
- ./:/app
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- db
- redis
- mailcatcher
db:
image: mariadb:10.8
environment:
- MARIADB_ROOT_PASSWORD=verysecret
- MARIADB_DATABASE=api_db
- MARIADB_USER=api
- MARIADB_PASSWORD=apisecret
db-test:
image: mariadb:10.8
environment:
- MARIADB_ROOT_PASSWORD=verysecret
- MARIADB_DATABASE=api_db_test
- MARIADB_USER=api_test
- MARIADB_PASSWORD=apisecret
redis:
image: redis:3
mailcatcher:
image: nisenabe/mailcatcher
# javascript container for running JS OpenAPI linter
nodejs:
image: node
command: 'tail -f /dev/null'
volumes:
- ./:/app