-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.18 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
version: '3'
volumes:
song_storage:
minio-data:
redis-data:
services:
song_storage:
image: postgres:latest
container_name: song_storage
ports:
- '5433:5432'
volumes:
- song_storage:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
redis:
image: redis:7.2-rc-alpine
container_name: redis
ports:
- '6379:6379'
volumes:
- ./sysctl.conf:/etc/sysctl.conf
command: sh -c "sysctl -p /etc/sysctl.conf && redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}"
minio:
image: minio/minio:latest
container_name: minio
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
flowt_app:
build: .
container_name: flowt_app
ports:
- '8080:8080'
depends_on:
- song_storage
- minio
- redis
env_file:
- .env