-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
102 lines (97 loc) · 2.87 KB
/
Copy pathcompose.yml
File metadata and controls
102 lines (97 loc) · 2.87 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
web:
env_file:
- "docker/env/web"
- "docker/env/web.local"
user: "${UID:-1000}:${GID:-1000}"
build:
context: .
dockerfile: "Dockerfile"
args:
DEV_BUILD: "true"
pull_policy: build
image: djpg_sample-web:latest
command: bash -c "/app/bin/release.sh && /app/bin/web.sh"
volumes:
- ${PWD}/docker/data/web:/data
- ${PWD}:/app
ports:
- 5000:5000
depends_on:
db:
condition: service_healthy
db:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:16-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db:/var/lib/postgresql/data
- ${PWD}/docker/conf/db/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5
db12:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:12-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db12:/var/lib/postgresql/data
- ${PWD}/docker/conf/db12/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5
db13:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:13-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db13:/var/lib/postgresql/data
- ${PWD}/docker/conf/db13/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5
db14:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:14-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db14:/var/lib/postgresql/data
- ${PWD}/docker/conf/db14/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5
db15:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:15-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db15:/var/lib/postgresql/data
- ${PWD}/docker/conf/db15/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5