-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.cli.yml
49 lines (46 loc) · 1007 Bytes
/
docker-compose.cli.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
version: '3.7'
services:
composer:
build:
context: .
dockerfile: docker/api/Dockerfile
image: local/composer:latest
init: true
volumes:
- .:/application:delegated
- ~/.composer/auth.json:/root/.composer/auth.json:delegated
- composer-cache:/root/.composer/cache:cached
depends_on:
- database
entrypoint:
- composer
env_file:
- .env
api:
build:
context: .
dockerfile: docker/api/Dockerfile
image: local/api:latest
init: true
privileged: true
volumes:
- .:/application:delegated
- composer-cache:/root/.composer/cache:cached
depends_on:
- database
env_file:
- .env
database:
image: postgres:9.6
volumes:
- database-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_DB=phparch
- POSTGRES_USER=phparch
- POSTGRES_PASSWORD=s3cr3t
volumes:
composer-cache: ~
database-data:
external: true