-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (72 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
76 lines (72 loc) · 1.66 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
he4rtbot-db:
build:
dockerfile: docker/postgres.Dockerfile
context: .
image: postgres.local:18
container_name: he4rtbot-db
restart: no
hostname: dev
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dev_he4rtbot
ports:
- '5432:5432'
volumes:
- he4rtbot-db:/var/lib/postgresql/data
networks:
- dev-he4rtbot
healthcheck:
test: ['CMD-SHELL', 'pg_isready --quiet --username=postgres --dbname=postgres || exit 1']
interval: 10s
retries: 5
timeout: 10s
start_period: 15s
he4rtbot-redis:
build:
dockerfile: docker/redis.Dockerfile
context: .
image: redis.local:8
container_name: he4rtbot-redis
restart: no
hostname: dev
ports:
- '6379:6379'
networks:
- dev-he4rtbot
healthcheck:
test: ['CMD-SHELL', 'redis-cli --raw incr ping || exit 1']
interval: 10s
retries: 5
timeout: 10s
start_period: 15s
he4rtbot-mailpit:
build:
dockerfile: docker/mailpit.Dockerfile
context: .
image: mailpit.local:1
container_name: he4rtbot-mailpit
restart: no
hostname: dev
ports:
- '1025:1025'
- '8025:8025'
networks:
- dev-he4rtbot
healthcheck:
test: ['CMD', '/mailpit', 'readyz']
interval: 10s
retries: 5
timeout: 10s
start_period: 10s
volumes:
he4rtbot-db:
name: he4rtbot-db
networks:
dev-he4rtbot:
name: dev-he4rtbot
driver: bridge
driver_opts:
com.docker.network.bridge.name: dev-he4rtbot
com.docker.network.bridge.host_binding_ipv4: '127.0.0.1'