-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
49 lines (46 loc) · 1015 Bytes
/
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
version: '3'
services:
web:
build: .
ports:
- "8080:80"
environment:
- PHP_SHORT_OPEN_TAG=On
- APACHE_ERRORLOG=/dev/stdout
- LOCALDB_USER=cservice
- LOCALDB_PASS=cservice
- LOCALDB_HOST=db
- REMOTEDB_NAME=cservice
- REMOTEDB_USER=cservice
- REMOTEDB_PASS=cservice
- REMOTEDB_HOST=db
- ENABLE_REGISTER_GLOBALS=1
- LOG_LEVEL=debug
- LOG_STREAM_HANDLER=php://stdout
- SMTPHOST=mailhog:1025
volumes:
- ./:/app
depends_on:
- db
- mailhog
mailhog:
image: ajoergensen/mailhog
ports:
- "1025:1025"
- "8025:8025"
db:
image: postgres:11-alpine
restart: always
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./dbinit:/docker-entrypoint-initdb.d
- ./:/app
environment:
- POSTGRES_USER=cservice
- POSTGRES_PASSWORD=cservice
- POSTGRES_INITDB_ARGS="-E SQL_ASCII"
- LANG=C
volumes:
pgdata: