-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.14 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.7'
services:
db:
image: postgis/postgis
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_USER: $DB_USER
ports:
- "5432:5432"
volumes:
- db_volume:/pgdata
adminer: # only for debug
image: adminer
restart: always
environment:
ADMINER_DESIGN: 'dracula'
depends_on:
- db
ports:
- "8081:8080" # only for debug
storage: # store images
image: minio/minio
command: server /data
ports:
- "9000:9000"
environment:
MINIO_ROOT_USER: $MINIO_ROOT_USER
MINIO_ROOT_PASSWORD: $MINIO_ROOT_PASSWORD
volumes:
- storage_volume:/data
recommender:
# need to copy .env file, so the context must be current dir
build:
dockerfile: recommender/src/Dockerfile
context: .
restart: always
depends_on:
- db
ports:
- "5003:5000"
app:
# need to copy .env file, so the context must be current dir
build:
dockerfile: backend/Dockerfile
context: .
restart: always
volumes:
- .:/opt/app/api
ports:
- "8080:8080"
volumes:
db_volume: { }
storage_volume: { }