-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev-infra.yml
59 lines (54 loc) · 1.36 KB
/
docker-compose-dev-infra.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
53
54
55
56
57
58
59
version: "3.9"
services:
postgres:
container_name: postgres
image: postgres:15
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
ports:
- 5432:5432
volumes:
- ./db:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U postgres -h 127.0.0.1
interval: 5s
networks:
- nest-api-boilerplate
pgweb:
container_name: pgweb
image: sosedoff/pgweb:latest
build: .
environment:
PGWEB_DATABASE_URL: "postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@postgres:${DATABASE_PORT}/${DATABASE_NAME}?sslmode=disable"
ports:
- 8081:8081
networks:
- nest-api-boilerplate
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "nc", "-vz", "127.0.0.1", "8081"]
interval: 5s
integresql:
container_name: integresql
image: ghcr.io/allaboutapps/integresql:latest
ports:
- "5000:5000"
depends_on:
- postgres
environment:
INTEGRESQL_PGHOST: postgres
INTEGRESQL_PGUSER: ${DATABASE_USER}
INTEGRESQL_PGPASSWORD: ${DATABASE_PASSWORD}
INTEGRESQL_PGDATABASE: ${DATABASE_NAME}
networks:
- nest-api-boilerplate
volumes:
data:
name: postgres
networks:
nest-api-boilerplate:
name: nest-api-boilerplate