refactor. pre-deploy
This commit is contained in:
@@ -2,22 +2,38 @@ version: '3.8'
|
||||
services:
|
||||
web:
|
||||
build: ./backend
|
||||
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000
|
||||
command: gunicorn backend.wsgi:application --bind 0.0.0.0:8000
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- media_volume:/app/media
|
||||
- media_volume:/app/storage
|
||||
- static_volume:/app/staticfiles
|
||||
env_file:
|
||||
- .env.example
|
||||
- .env
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data/
|
||||
env_file:
|
||||
- .env.example
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build: ./frontend/linktree-frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_URL=http://localhost:8000
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
media_volume:
|
||||
static_volume:
|
||||
|
||||
Reference in New Issue
Block a user