-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
52 lines (51 loc) · 1.02 KB
/
docker-compose.dev.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
50
51
52
version: "3.9"
services:
admin:
restart: always
build:
context: admin/.
ports:
- 8001:8001
depends_on:
- api
api:
restart: always
build:
context: api/.
args:
DB_POSTGRES_URL: $DB_POSTGRES_URL
API_PORT: $API_PORT
ports:
- $API_PORT:$API_PORT
depends_on:
- postgres
postgres:
image: "postgres"
restart: always
ports:
- $DB_POSTGRES_PORT:5432
environment:
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASS
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $DB_USER"]
interval: 1s
timeout: 1s
retries: 3
mongo:
image: "mongo"
restart: always
ports:
- $DB_MONGO_PORT:27017
environment:
MONGO_INITDB_ROOT_USERNAME: $DB_USER
MONGO_INITDB_ROOT_PASSWORD: $DB_PASS
volumes:
- mongo:/data/db
healthcheck:
test: ["CMD","mongosh", "--eval", "db.adminCommand('ping')"]
interval: 1s
timeout: 1s
retries: 3
volumes:
mongo: