-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (53 loc) · 1.07 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
57
58
version: "3"
networks:
back:
volumes:
soundhive_pg:
soundhive_minio:
services:
front:
build:
context: .
args:
ENV: development
container_name: soundhive-front
ports:
- "8080:8080"
back:
build:
context: ./api/
dockerfile: ./api/Dockerfile
container_name: soundhive-back
ports:
- "3000:3000"
networks:
- back
depends_on:
- minio
- db
db:
image: postgres:13-alpine
networks:
- back
volumes:
- ./soundhive_pg:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${DB_NAME}
- PGPORT=${DB_PORT}
- POSTGRES_USER=${POSTGRES_USER}
minio:
image: minio/minio
volumes:
- soundhive_minio:/data
environment:
MINIO_ACCESS_KEY: miniokey
MINIO_SECRET_KEY: miniosecret
command: server /data
# ports:
# - 127.0.0.1:9000:9000
networks:
- back
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
restart: always