chore: Update Docker and Django server configuration
This commit is contained in:
@@ -2,8 +2,8 @@ version: "3.9"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build:
|
# build: ./frontend/
|
||||||
context: ./frontend/
|
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
|
||||||
environment:
|
environment:
|
||||||
- PUBLIC_SERVER_URL=http://server:8000
|
- PUBLIC_SERVER_URL=http://server:8000
|
||||||
- ORIGIN=http://localhost:8080
|
- ORIGIN=http://localhost:8080
|
||||||
@@ -23,7 +23,8 @@ services:
|
|||||||
- postgres_data:/var/lib/postgresql/data/
|
- postgres_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build: ./backend/
|
# build: ./backend/
|
||||||
|
image: ghcr.io/seanmorley15/adventurelog-backend:latest
|
||||||
environment:
|
environment:
|
||||||
- PGHOST=db
|
- PGHOST=db
|
||||||
- PGDATABASE=database
|
- PGDATABASE=database
|
||||||
@@ -34,7 +35,7 @@ services:
|
|||||||
- DJANGO_ADMIN_PASSWORD=admin
|
- DJANGO_ADMIN_PASSWORD=admin
|
||||||
- DJANGO_ADMIN_EMAIL=admin@example.com
|
- DJANGO_ADMIN_EMAIL=admin@example.com
|
||||||
- PUBLIC_URL='http://127.0.0.1:8000'
|
- PUBLIC_URL='http://127.0.0.1:8000'
|
||||||
- DEBUG=False
|
- DEBUG=True
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user