-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (54 loc) · 1.47 KB
/
compose.yml
File metadata and controls
58 lines (54 loc) · 1.47 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
54
55
56
57
58
services:
postgres:
image: "postgres:16.2"
ports:
- "5432:5432"
environment:
POSTGRES_USER: "drupico"
POSTGRES_PASSWORD: "drupico"
POSTGRES_DB: "drupico"
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U drupico -d drupico'"]
interval: 1s
timeout: 30s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data # Mounts the named volume
postgres-test:
image: "postgres:16.2"
ports:
- "5433:5432"
environment:
POSTGRES_USER: "drupico"
POSTGRES_PASSWORD: "drupico"
POSTGRES_DB: "drupico"
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U drupico -d drupico'"]
interval: 1s
timeout: 30s
retries: 5
volumes:
- postgres_test_data:/var/lib/postgresql/test_data # Mounts the named volume
# profiles:
# - test
pgadmin:
image: "dpage/pgadmin4"
environment:
PGADMIN_DEFAULT_EMAIL: nick@trkl.dev
PGADMIN_DEFAULT_PASSWORD: drupico
ports:
- "8888:80"
ngrok:
command: http host.docker.internal:1324 --domain=prawn-grateful-sheep.ngrok-free.app
image: "ngrok/ngrok:latest"
network_mode: "host"
restart: unless-stopped
env_file:
- .env
ports:
- 4040:4040
profiles:
- ngrok
volumes:
postgres_data: # This named volume will persist data even after docker compose down
postgres_test_data: # This named volume will persist data even after docker compose down