-
-
Notifications
You must be signed in to change notification settings - Fork 145
/
compose.yml
99 lines (94 loc) · 2.37 KB
/
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
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
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: brasil-io-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
messaging:
condition: service_started
worker:
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: brasil-io-web:latest
command: /app/bin/worker.sh
volumes:
- ${PWD}/docker/data/web:/data
- ${PWD}:/app
depends_on:
db:
condition: service_healthy
messaging:
condition: service_started
db:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "8g"
image: "postgres:16.3-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
mail:
image: "mailhog/mailhog:latest"
user: "${UID:-1000}:${GID:-1000}"
env_file:
- "docker/env/mail"
- "docker/env/mail.local"
volumes:
- ${PWD}/docker/data/mail:/data
ports:
- "8025:8025"
messaging:
image: "redis:6.2-alpine"
user: "${UID:-1000}:${GID:-1000}"
env_file:
- "docker/env/messaging"
- "docker/env/messaging.local"
volumes:
- ${PWD}/docker/data/messaging:/data
storage:
image: "minio/minio:latest"
env_file:
- "docker/env/storage"
- "docker/env/storage.local"
volumes:
- ${PWD}/docker/data/storage:/data
ports:
- 9000:9000
- 9001:9001
command: ["server", "/data", "--console-address", ":9001"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/index.html || exit 1"]
interval: 10s
timeout: 3s
retries: 5