-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
104 lines (98 loc) · 2.23 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
104 lines (98 loc) · 2.23 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
103
104
services:
# api:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: tracex-api
# restart: unless-stopped
# ports:
# - '4000:4000'
# env_file:
# - .env
# networks:
# - tracex-net
# depends_on:
# - postgres
# - minio
# - redis
# - rabbitmq
postgres:
container_name: tracex-postgres
image: postgis/postgis:17-master
restart: unless-stopped
ports:
- '5432:5432'
environment:
POSTGRES_USER: user-name
POSTGRES_PASSWORD: strong-password
POSTGRES_DB: tracex
TZ: Asia/Bangkok
volumes:
- local_postgres:/var/lib/postgresql/data
networks:
- tracex-net
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $POSTGRES_USER']
interval: 5s
timeout: 5s
retries: 5
minio:
container_name: tracex-minio
image: quay.io/minio/minio
command: server /data --console-address ":9001"
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=user-name
- MINIO_ROOT_PASSWORD=strong-password
volumes:
- local_minio:/data
networks:
- tracex-net
healthcheck:
test: ['CMD', 'curl', '-f', 'http://minio:9000/minio/health/live']
interval: 30s
timeout: 20s
retries: 3
redis:
container_name: tracex-redis
image: redis
ports:
- '6379:6379'
healthcheck:
test: ['CMD-SHELL', 'redis-cli -a strong-password ping | grep PONG']
interval: 5s
timeout: 5s
retries: 5
command: ['redis-server', '--requirepass', 'strong-password']
networks:
- tracex-net
volumes:
- local_redis:/data
rabbitmq:
container_name: tracex-rabbitmq
image: rabbitmq:4-management
ports:
- '5672:5672'
- '15672:15672'
environment:
RABBITMQ_DEFAULT_USER: user-name
RABBITMQ_DEFAULT_PASS: strong-password
networks:
- tracex-net
healthcheck:
test: ['CMD-SHELL', 'rabbitmq-diagnostics -q ping']
interval: 30s
timeout: 10s
retries: 5
volumes:
- local_rabbitmq:/var/lib/rabbitmq
volumes:
local_postgres:
local_minio:
local_redis:
local_rabbitmq:
networks:
tracex-net:
driver: bridge