mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-06-03 16:03:12 +00:00
Switch to Postgres database
This commit is contained in:
parent
fda3fcc28c
commit
5248ae0123
6 changed files with 67 additions and 19 deletions
|
@ -11,8 +11,21 @@ services:
|
|||
- ./Caddy/data:/data
|
||||
- ./Caddy/config:/config
|
||||
environment:
|
||||
- ACME_AGREE=true
|
||||
- DOMAIN=expo.leggy.dev
|
||||
DOMAIN: expo.leggy.dev
|
||||
links:
|
||||
- highscore
|
||||
|
||||
db:
|
||||
image: postgres:alpine
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- ./Postgress/data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: secret
|
||||
POSTGRES_DB: database
|
||||
POSTGRES_PORT: 5432
|
||||
links:
|
||||
- highscore
|
||||
|
||||
|
@ -20,6 +33,15 @@ services:
|
|||
build: ./Highscore-Server
|
||||
volumes:
|
||||
- ./Highscore-Server/data:/data/storage
|
||||
- ./Highscore-Server/logs:/data/logs
|
||||
# Pass in the code to the container so I don't
|
||||
# have to rebuild it every time during development
|
||||
- ./Highscore-Server/highscore:/data/highscore
|
||||
environment:
|
||||
- FLASK_KEY=secret
|
||||
- BEARER_TOKEN=1234
|
||||
FLASK_KEY: secret
|
||||
BEARER_TOKEN: 1234
|
||||
DB_USER: root
|
||||
DB_PASSWORD: secret
|
||||
DB_HOST: db
|
||||
DB_PORT: 5432
|
||||
DB_NAME: database
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue