-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.tst.yml
More file actions
53 lines (47 loc) · 1.06 KB
/
Copy pathdocker-compose.tst.yml
File metadata and controls
53 lines (47 loc) · 1.06 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
version: '3'
services:
api:
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:3333/health || exit 1"]
interval: 5s
container_name: mandoubem_api
build: .
ports:
- '3333:3333'
env_file: .env
depends_on:
- postgres
- redis
- mongo
network_mode: host
postgres:
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
image: postgres
container_name: mandoubem_postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=mandoubem
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
network_mode: host
redis:
healthcheck:
test: ["CMD-SHELL", "redis-cli", "ping"]
interval: 5s
image: redis
container_name: mandoubem_redis
ports:
- "6379:6379"
network_mode: host
mongo:
healthcheck:
test: ["CMD-SHELL", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 5s
image: mongo
container_name: mandoubem_mongodb
ports:
- "27017:27017"
network_mode: host