-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
47 lines (43 loc) · 1.01 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
version: '3.7'
services:
db:
image: postgres:11.2-alpine
container_name: zero_db
command: >
postgres
-c log_statement=all
-c max_connections=1000
-c log_connections=true
-c log_disconnections=true
-c log_duration=true
ports:
- "5432:5432"
volumes:
- ./.docker:/docker-entrypoint-initdb.d
- type: tmpfs
target: /var/lib/postgresql/data
tmpfs:
size: 4294967296 # 4 GB
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:5.0.5
container_name: zero_redis
ports:
- "6379:6379"
adminer:
image: adminer
container_name: zero_adminer
command: ["php", "-S", "0.0.0.0:8081", "-t", "/var/www/html"]
links:
- "db:db"
ports:
- "8081:8081"
environment:
DATABASE_URL: "postgres://zero_dev:secret@db:5432/zero_dev?sslmode=disable"
depends_on:
db:
condition: service_healthy