-
Notifications
You must be signed in to change notification settings - Fork 59
/
docker-compose.yml
45 lines (44 loc) · 1021 Bytes
/
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
services:
postgres:
image: postgres:14
env_file: .env
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- '5432:5432'
healthcheck:
test: pg_isready
interval: 10s
timeout: 5s
retries: 5
pgweb:
image: sosedoff/pgweb
profiles:
- develop
- testing
depends_on:
postgres:
condition: service_healthy
environment:
PGWEB_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable
ports:
- '8091:8081'
healthcheck:
test: nc -vz 127.0.0.1 8081
interval: 5s
integresql:
image: allaboutapps/integresql
profiles:
- testing
depends_on:
postgres:
condition: service_healthy
environment:
INTEGRESQL_PGPASSWORD: $POSTGRES_PASSWORD
INTEGRESQL_PGUSER: $POSTGRES_USER
INTEGRESQL_PGDATABASE: $POSTGRES_DB
INTEGRESQL_PGHOST: postgres
ports:
- '5000:5000'
volumes:
postgres-data: