mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 13:15:18 +02:00
migration to new backend
This commit is contained in:
parent
28a5d423c2
commit
9abe9fb315
309 changed files with 21476 additions and 24132 deletions
|
@ -1,43 +1,46 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
build:
|
||||
context: ./frontend/
|
||||
environment:
|
||||
- DATABASE_URL=postgres://adventurelog:PO24VjITwGgk@db:5432/adventurelog
|
||||
# ORIGIN is only necessary when not using a reverse proxy or hosting that includes https
|
||||
- ORIGIN=http://localhost:3000
|
||||
# SKIP_DB_WAIT: Only necessary for externally hosted databases such as NeonDB which have their own health checks!
|
||||
- SKIP_DB_WAIT=false
|
||||
- AWS_ACCESS_KEY_ID=minioadmin
|
||||
- AWS_SECRET_ACCESS_KEY=minioadmin
|
||||
- AWS_S3_ENDPOINT=http://minio:9000
|
||||
# MINIO_CLIENT_OVERRIDE: Only necessary if using minio here with this docker compose file. This is becaues the client needs a different endpoint than the server because its not in the docker network.
|
||||
- MINIO_CLIENT_OVERRIDE=http://localhost:9000
|
||||
- BODY_SIZE_LIMIT=Infinity # change this to a smaller value if you want to limit the size of uploaded files!
|
||||
- PUBLIC_SERVER_URL=http://server:8000
|
||||
- ORIGIN=http://localhost:8080
|
||||
- BODY_SIZE_LIMIT=Infinity
|
||||
ports:
|
||||
- "8080:3000"
|
||||
depends_on:
|
||||
- server
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_DB: database
|
||||
POSTGRES_USER: adventure
|
||||
POSTGRES_PASSWORD: changeme123
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data/
|
||||
|
||||
server:
|
||||
build: ./backend/
|
||||
environment:
|
||||
- PGHOST=db
|
||||
- PGDATABASE=database
|
||||
- PGUSER=adventure
|
||||
- PGPASSWORD=changeme123
|
||||
- SECRET_KEY=changeme123
|
||||
- DJANGO_ADMIN_USERNAME=admin
|
||||
- DJANGO_ADMIN_PASSWORD=admin
|
||||
- DJANGO_ADMIN_EMAIL=admin@example.com
|
||||
- PUBLIC_URL='http://127.0.0.1:8000'
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
- minio
|
||||
db:
|
||||
image: postgres
|
||||
environment:
|
||||
POSTGRES_USER: adventurelog
|
||||
POSTGRES_PASSWORD: PO24VjITwGgk
|
||||
POSTGRES_DB: adventurelog
|
||||
ports:
|
||||
- "5432:5432"
|
||||
minio:
|
||||
image: quay.io/minio/minio
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
- MINIO_ROOT_USER=minioadmin
|
||||
- MINIO_ROOT_PASSWORD=minioadmin
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
- adventurelog_media:/code/media/
|
||||
|
||||
volumes:
|
||||
minio_data:
|
||||
postgres_data:
|
||||
adventurelog_media:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue