project setup
This commit is contained in:
38
dev.yml
Normal file
38
dev.yml
Normal file
@ -0,0 +1,38 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: backend
|
||||
ports:
|
||||
- "5000"
|
||||
env_file:
|
||||
- path: ./env/backend/dev.env
|
||||
required: true
|
||||
volumes:
|
||||
- ./backend/app:/app:z
|
||||
frontend:
|
||||
build:
|
||||
context: frontend
|
||||
ports:
|
||||
- "3000"
|
||||
env_file:
|
||||
- path: ./env/frontend/dev.env
|
||||
required: true
|
||||
volumes:
|
||||
- ./frontend/app:/app:z
|
||||
nginx:
|
||||
image: nginx:1.25.4-alpine
|
||||
volumes:
|
||||
- ./nginx/dev.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./static:/static
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "80:80"
|
||||
postgres:
|
||||
image: postgres:16.2-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data/
|
||||
env_file:
|
||||
- path: ./env/postgres.env
|
||||
required: true
|
||||
Reference in New Issue
Block a user