forked from galaxy-raiders/galaxy-raiders-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (67 loc) · 2.02 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
59
60
61
62
63
64
65
66
67
68
69
70
services:
# The `game` service is the production app for end users.
game:
image: "${GALAXY_RAIDERS_IMAGE}:${GALAXY_RAIDERS_VERSION}"
build:
context: .
target: "runner"
ports:
- "5000:5000"
profiles:
- "prod"
environment:
GR__APP__OPERATION_MODE: "${MODE:-Web}"
env_file:
- "configs.prod.env"
# The `linter` service allows running all linters.
# Whenever a file changes, Gradle will rerun detekt and ktlint.
linter:
image: "${GALAXY_RAIDERS_IMAGE}:${GALAXY_RAIDERS_VERSION}"
build:
context: .
target: "base"
command: "gradle formatKotlin detekt"
volumes:
- "./:/home/gradle/galaxy-raiders/"
profiles:
- "dev"
env_file:
- "configs.dev.env"
# The `tester` service allows running all tests.
# Whenever a file changes, JUnit will rerun all tests related to it.
tester:
image: "${GALAXY_RAIDERS_IMAGE}:${GALAXY_RAIDERS_VERSION}"
build:
context: .
target: "base"
command: "gradle --continuous test"
volumes:
- "./:/home/gradle/galaxy-raiders/"
profiles:
- "dev"
env_file:
- "configs.dev.env"
# The `demo` service allows running the application.
# Whenever a file changes, the app will be restarted automatically.
demo:
image: "${GALAXY_RAIDERS_IMAGE}:${GALAXY_RAIDERS_VERSION}"
build:
context: .
target: "base"
command: "gradle --continuous runShadow"
ports:
- "5000:5000"
volumes:
- "./:/home/gradle/galaxy-raiders/"
profiles:
- "dev"
environment:
GR__APP__RANDOM_SEED: "${SEED:-42}"
GR__APP__OPERATION_MODE: "${MODE:-Web}"
GR__CORE__GAME__GAME_ENGINE__FRAME_RATE: "${FPS:-60}"
GR__CORE__GAME__GAME_ENGINE__SPACEFIELD_WIDTH: "${HEIGHT:-54}"
GR__CORE__GAME__GAME_ENGINE__SPACEFIELD_HEIGHT: "${WIDTH:-36}"
GR__CORE__GAME__GAME_ENGINE__ASTEROID_PROBABILITY: "${ASTEROID:-0.05}"
GR__CORE__GAME__GAME_ENGINE__COEFFICIENT_RESTITUTION: "${CR:-1.0}"
env_file:
- "configs.dev.env"