mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 01:38:20 +00:00
Merge pull request #1 from VBMCBoy/main
Add Brick-Building-Fix and AccountManager
This commit is contained in:
commit
157977e267
@ -3,4 +3,6 @@ CLIENT_PATH=/Users/someuser/LEGO Universe
|
||||
# Can improve build time
|
||||
BUILD_THREADS=10
|
||||
# Updates NET_VERSION in CMakeVariables.txt
|
||||
BUILD_VERSION=171023
|
||||
BUILD_VERSION=171023
|
||||
# make sure this is a long random string
|
||||
ACCOUNT_MANAGER_SECRET=
|
||||
|
@ -34,6 +34,44 @@ services:
|
||||
depends_on:
|
||||
- database
|
||||
|
||||
brickbuildfix:
|
||||
container_name: DarkFlameBrickBuildFix
|
||||
networks:
|
||||
- darkflame
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/brickfix.Dockerfile
|
||||
ports:
|
||||
- 80:80
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||
interval: 2m
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
account-manager:
|
||||
container_name: DarkFlameAccountManager
|
||||
networks:
|
||||
- darkflame
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/AccountManager.Dockerfile
|
||||
environment:
|
||||
- DATABASE=${MARIADB_DATABASE:-darkflame}
|
||||
- DATABASE_HOST=database
|
||||
- DATABASE_USER=${MARIADB_USER:-darkflame}
|
||||
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
||||
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?err}
|
||||
ports:
|
||||
- 5000:5000
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
||||
interval: 2m
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
darkflame:
|
||||
|
||||
|
13
docker/AccountManager.Dockerfile
Normal file
13
docker/AccountManager.Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM python:3.9.9-buster
|
||||
|
||||
WORKDIR /usr/local/share/
|
||||
RUN git clone https://github.com/DarkflameUniverse/AccountManager
|
||||
|
||||
WORKDIR AccountManager
|
||||
ADD docker/credentials_example.py credentials.py
|
||||
ADD docker/resources_example.py resources.py
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
CMD python3 app.py
|
5
docker/brickfix.Dockerfile
Normal file
5
docker/brickfix.Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM python:3.9.9-slim
|
||||
WORKDIR /empty_dir
|
||||
EXPOSE 80
|
||||
CMD python -m http.server 80
|
4
docker/credentials_example.py
Normal file
4
docker/credentials_example.py
Normal file
@ -0,0 +1,4 @@
|
||||
import os
|
||||
|
||||
DB_URL = f'mysql+pymysql://{os.environ["DATABASE_USER"]}:{os.environ["DATABASE_PASSWORD"]}@{os.environ["DATABASE_HOST"]}/{os.environ["DATABASE"]}'
|
||||
SECRET_KEY = os.environ["ACCOUNT_SECRET"]
|
3
docker/resources_example.py
Normal file
3
docker/resources_example.py
Normal file
@ -0,0 +1,3 @@
|
||||
LOGO = 'logo/logo.png'
|
||||
PRIVACY_POLICY = 'policy/Privacy Policy.pdf'
|
||||
TERMS_OF_USE = 'policy/Terms of Use.pdf'
|
Loading…
Reference in New Issue
Block a user