-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (39 loc) · 987 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
46
47
48
49
50
51
version: "3.8"
name: chatter
services:
postgres:
image: postgres
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "${VITE_DB_FORWARD_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: ${VITE_DB_USER:-chatter}
POSTGRES_PASSWORD: ${VITE_DB_PASSWORD:-chatter}
POSTGRES_DB: ${VITE_DB_DATABASE:-chatter}
postgres-dev:
image: postgres
restart: always
volumes:
- postgres-dev-data:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: ${VITE_DB_USER:-chatter}
POSTGRES_PASSWORD: ${VITE_DB_PASSWORD:-chatter}
POSTGRES_DB: ${VITE_DB_DATABASE:-chatter}
volumes:
postgres-data:
postgres-dev-data:
pgadmin-data: