forked from gitter-badger/parkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
31 lines (27 loc) · 821 Bytes
/
docker-compose.yaml
File metadata and controls
31 lines (27 loc) · 821 Bytes
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
version: '3'
services:
php:
image: parkmanager/ci-dev:latest
depends_on:
- db
env_file:
- .env.dist
environment:
DATABASE_URL: 'pgsql://root@db:5432/park_manager?charset=utf8&serverVersion=9.6'
APP_SECTIONS: '{"admin":{"prefix":"admin/"},"client":{"prefix":"/"},"api":{"prefix":"api/"}}'
volumes:
- .:/srv/www:rw
- /srv/www/var/logs/
- /srv/www/var/sessions/
db:
image: postgres:9.6-alpine
environment:
- POSTGRES_DB=park_manager
- POSTGRES_USER=root
volumes:
# Use virtual volume as this is only for testing
- db-data:/var/lib/postgresql/data:rw
ports:
- "5433:5432"
volumes:
db-data: {}