-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
143 lines (137 loc) · 4.39 KB
/
docker-compose-dev.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
networks:
development:
name: development
driver: bridge
services:
frontend_dev:
build:
context: .
dockerfile: docker/frontend/Dockerfile
args:
# Docker image versions
HTTPD_VERSION: "2.4.62" # https://hub.docker.com/_/httpd/tags
MINIFY_VERSION: "v2.21.2" # https://hub.docker.com/r/tdewolff/minify/tags
NODE_VERSION: "23.3.0" # https://hub.docker.com/_/node/tags
# Build arguments
ADMIN_EMAIL_ADDRESS: "[email protected]"
FORUM_LINK: "https://extremehw.net/forum/125-extreme-team-folding"
REST_ENDPOINT_URL: "http://127.0.0.1:8079/folding"
ROOT_URL: "https://127.0.0.1:81"
TITLE: "Extreme Team Folding"
UPDATE_ENABLED: "false"
container_name: frontend_dev
hostname: frontend-dev
depends_on:
- backend_dev
networks:
- development
ports:
- "81:443"
restart: "no"
volumes_from:
- backend_dev
backend_dev:
build:
context: .
dockerfile: docker/backend/Dockerfile
args:
# Docker image versions
DEBIAN_VERSION: "12.8" # https://hub.docker.com/_/debian/tags
JAVA_VERSION: "23.0.1_11" # https://hub.docker.com/_/eclipse-temurin/tags
MAVEN_VERSION: "3.9.9" # https://hub.docker.com/_/maven/tags
# Build arguments
KEYSTORE_PASSWORD: "shroot"
container_name: backend_dev
hostname: backend-dev # Using a dash as Java's URI builder will fail with an underscore
environment:
# External URL configuration
LARS_URL_ROOT: "http://backend-dev:8443/folding"
STATS_URL_ROOT: "http://backend-dev:8443/folding"
REDIRECT_URL: "https://127.0.0.1:81"
# Spring configuration
DEPLOYMENT_TYPE: "test"
JVM_MAX: "512m"
JVM_MIN: "128m"
MULTIPLE_LOG_FILES: "false"
# NOTE: The monthly reset, result storage and LARS update will always occur at 23:57:00 on the last day of the month
ENABLE_LARS_HARDWARE_UPDATE: "false"
ENABLE_MONTHLY_RESULT_STORAGE: "false"
ENABLE_STATS_MONTHLY_RESET: "false"
# Stats parsing configuration
ENABLE_STATS_SCHEDULED_PARSING: "false"
SECONDS_BETWEEN_HTTP_REQUEST_ATTEMPTS: "0"
MAXIMUM_HTTP_REQUEST_ATTEMPTS: "3"
# Category configuration
USERS_IN_AMD_GPU: "1"
USERS_IN_NVIDIA_GPU: "1"
USERS_IN_WILDCARD: "1"
# Spring configuration
spring.datasource.url: "jdbc:postgresql://database_dev:5432/folding_db"
spring.datasource.driver: "org.postgresql.Driver"
spring.datasource.username: "folding_user"
spring.datasource.password: "shroot"
spring.datasource.database.type: "postgresql"
# Swagger documentation
CONTACT_NAME: "zodac"
FORUM_LINK: "https://extremehw.net/forum/125-extreme-team-folding"
REST_ENDPOINT_URL: "http://127.0.0.1:8079/folding"
networks:
- development
ports:
- "8079:8443"
restart: "no"
volumes:
- /usr/local/certs/stats/
database_dev:
build:
context: .
dockerfile: docker/database/Dockerfile
args:
# Docker image versions
POSTGRES_VERSION: "17.2" # https://hub.docker.com/_/postgres/tags
# Build arguments
ADMIN_USERNAME: "root"
ADMIN_PASSWORD: "shroot"
READ_ONLY_USERNAME: "root2"
READ_ONLY_PASSWORD: "shroot2"
POSTGRES_USER: "folding_user"
container_name: database_dev
hostname: database_dev
environment:
# First 4 variables used to configure DB
POSTGRES_DB: "folding_db"
POSTGRES_USER: "folding_user"
POSTGRES_PASSWORD: "shroot"
POSTGRES_PORT: "5432"
PGDATA: "/var/lib/postgresql/data/pgdata"
# Next 3 variables needed to avoid "FATAL role 'root' does not exist" error
PGDATABASE: "folding_db"
PGUSER: "folding_user"
PGPASSWORD: "shroot"
networks:
- development
ports:
- "5433:5432"
restart: "no"
selenium_chrome:
image: selenium/standalone-chrome:131.0
container_name: selenium_chrome
hostname: selenium_chrome
depends_on:
- frontend_dev
networks:
- development
ports:
- "4444:4444"
restart: "no"
selenium_firefox:
image: selenium/standalone-firefox:133.0
container_name: selenium_firefox
hostname: selenium_firefox
depends_on:
- frontend_dev
networks:
- development
ports:
- "4445:4444"
restart: "no"