-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (66 loc) · 1.39 KB
/
docker-compose.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
63
64
65
66
67
68
69
70
71
version: '3'
networks:
app-network:
driver: bridge
volumes:
cache:
driver: local
db-data:
driver: local
minio-data:
driver: local
services:
app:
restart: always
build:
context: .
container_name: tasklist
networks:
- app-network
depends_on:
- db
- minio
- redis
env_file:
- .env
ports:
- '8080:8080'
db:
image: postgres:16.3-alpine
container_name: postgres
networks:
- app-network
ports:
- '5432:5432'
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DATABASE}
volumes:
- ./src/main/resources/db-init:/docker-entrypoint-initdb.d
- db-data:/var/lib/postgresql/data
redis:
image: redis:7.2.5-alpine
restart: always
container_name: redis
networks:
- app-network
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
volumes:
- cache:/data
minio:
image: minio/minio:latest
container_name: minio
networks:
- app-network
environment:
- MINIO_ROOT_USER=${MINIO_ACCESS_KEY}
- MINIO_ROOT_PASSWORD=${MINIO_SECRET_KEY}
command: server ~/minio --console-address :9090
ports:
- '9090:9090'
- '9000:9000'
volumes:
- minio-data:/minio