-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.73 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
version: "3.9"
services:
postgres:
image: postgres:14.8-alpine3.18
environment:
POSTGRES_DB: "higharchdb"
POSTGRES_USER: "higharchpguser"
POSTGRES_PASSWORD: "higharchpgpwd"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ./init_db:/docker-entrypoint-initdb.d
- higharchdb-data:/var/lib/postgresql/data
ports:
- "5432:5432"
cache-redis:
image: redis:7.2.5-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass higharchredispwd
volumes:
- higharchdb-cache:/data
rabbitmq:
image: rabbitmq:3.13.4-management
hostname: rabbitmq
restart: always
environment:
- RABBITMQ_DEFAULT_USER=higharchrabbituser
- RABBITMQ_DEFAULT_PASS=higharchrabbitpwd
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error},{default,error}] disk_free_limit 2147483648
volumes:
- higharchdb-rabbit:/var/lib/rabbitmq
ports:
- 15672:15672
- 5672:5672
app:
build:
dockerfile: Dockerfile
context: .
environment:
POSTGRES_DB: "higharchdb"
POSTGRES_USER: "higharchpguser"
POSTGRES_PASSWORD: "higharchpgpwd"
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
REDIS_HOST: "cache-redis"
REDIS_PORT: "6379"
REDIS_PASSWORD: "higharchredispwd"
RABBITMQ_PORT: "5672"
RABBITMQ_HOST: "rabbitmq"
RABBITMQ_USER: "higharchrabbituser"
RABBITMQ_PASS: "higharchrabbitpwd"
APP_PORT: "8080"
volumes:
- .:/app
ports:
- "8080:8080"
depends_on:
- postgres
- cache-redis
- rabbitmq
volumes:
higharchdb-data:
higharchdb-cache:
higharchdb-rabbit: