-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.example.yaml
62 lines (58 loc) · 1.22 KB
/
compose.example.yaml
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
version: "3.8"
services:
monaxia:
build:
dockerfile: "./docker/Dockerfile.monaxia"
context: "./"
restart: "always"
depends_on:
postgres:
condition: "service_healthy"
redis:
condition: "service_healthy"
volumes:
- "./config.toml:/monaxia/config.toml"
- "./data/monaxia:/monaxia/data"
ports:
- "3000:3000"
postgres:
image: "postgres:15-alpine"
env_file:
- "./.env"
volumes:
- "./data/postgres:/var/lib/postgresql/data"
expose:
- 5432
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: "3s"
retries: 10
rabbitmq:
hostname: "rabbitmq"
build:
dockerfile: "./docker/Dockerfile.rabbitmq"
context: "./"
env_file:
- "./.env"
volumes:
- "./data/rabbitmq:/var/lib/rabbitmq"
expose:
- 5672
ports:
- "15672:15672"
healthcheck:
test: "rabbitmq-diagnostics -q ping"
interval: "3s"
retries: 10
redis:
image: "redis:7-alpine"
env_file:
- "./.env"
volumes:
- "./data/redis:/data"
expose:
- 6379
healthcheck:
test: "redis-cli ping"
interval: "3s"
retries: 10