-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-release.yaml
70 lines (63 loc) · 1.45 KB
/
docker-compose-release.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
version: "3.8"
# Rust build mode: [debug, release]
x-build-mode: &build-mode
release
volumes:
data-request: {}
data-complete: {}
redis: {}
x-shared-environment: &shared-environment
environment:
CONFIG.REQUEST_STORAGE_PATH: /data/request
CONFIG.COMPLETE_STORAGE_PATH: /data/complete
CONFIG.REDIS_URL: redis://redis
CONFIG.BIND_ADDRESS: 0.0.0.0:3030
volumes:
- data-request:/data/request
- data-complete:/data/complete
services:
redis:
image: redis:latest
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=true
volumes:
- redis:/data
bot:
depends_on: [ redis ]
build:
context: ./
dockerfile: jigsaw-bot/Dockerfile
args:
BUILD_MODE: *build-mode
restart: always
env_file: [ .env ]
<<: *shared-environment
generator:
depends_on: [ redis ]
build:
context: ./
dockerfile: jigsaw-generator/Dockerfile
args:
BUILD_MODE: *build-mode
restart: always
env_file: [ .env ]
<<: *shared-environment
volumes:
- data-request:/data/request
- data-complete:/data/complete
backend:
depends_on: [ redis ]
build:
context: ./
dockerfile: ./jigsaw-backend/Dockerfile
args:
BUILD_MODE: *build-mode
restart: always
env_file: [ .env ]
<<: *shared-environment
volumes:
- data-request:/data/request
- data-complete:/data/complete
ports:
- "3030:3030"