-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.33 KB
/
docker-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
version: '1'
services:
app:
image: overpathz/communitybot
build: .
container_name: community-app
ports:
- "8080:8080"
depends_on:
- redis
- rabbitmq
- db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/${DB_NAME}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASS}
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_RABBITMQ_USERNAME: ${RABBIT_USER}
SPRING_RABBITMQ_PASSWORD: ${RABBIT_PASS}
SPRING_RABBITMQ_HOST: ${RABBIT_HOST}
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
SPRING_PROFILES_ACTIVE: prometheus
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET_NAME: ${S3_BUCKET_NAME}
volumes:
- ./logs:/app/logs
db:
image: 'postgres:13.1-alpine'
container_name: db
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
ports:
- "5432:5432"
redis:
image: redis
restart: always
ports:
- 6379:6379
volumes:
- ./redis-data:/data
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=${RABBIT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBIT_PASS}