-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose-production.yml
71 lines (68 loc) · 1.46 KB
/
docker-compose-production.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
59
60
61
62
63
64
65
66
67
68
69
70
71
# Build production images
version: '3'
services:
lab:
build:
context: .
dockerfile: docker/lab/Dockerfile
target: prod
args:
- USE_WHEELS=0
x-bake:
platforms:
- linux/amd64
- linux/arm64/v8
image: "moorelab/aliro_lab:${TAG}"
tty: true
stdin_open: true
volumes:
- "/appsrc"
- "./data/datasets/user:/appsrc/data/datasets/user"
- "./data/recommenders/pennaiweb:/appsrc/data/recommenders/pennaiweb"
- "./target:/appsrc/target"
ports:
- "5080:5080"
env_file:
- ./config/common.env
- ./config/ai.env
depends_on:
- dbmongo
machine:
build:
context: .
dockerfile: docker/machine/Dockerfile
target: prod
args:
- USE_WHEELS=0
x-bake:
platforms:
- linux/amd64
- linux/arm64/v8
image: "moorelab/aliro_machine:${TAG}"
tty: true
stdin_open: true
volumes:
- "/appsrc"
- "./target:/appsrc/target"
ports:
- "5081:5081"
env_file: ./config/common.env
environment:
- MACHINE_PORT=5081
depends_on:
- lab
- dbmongo
dbmongo:
build:
context: .
dockerfile: docker/dbmongo/Dockerfile
x-bake:
platforms:
- linux/amd64
- linux/arm64/v8
image: "moorelab/aliro_dbmongo:${TAG}"
tty: true
stdin_open: true
ports:
- "27017:27017"
env_file: ./config/common.env