add docker readme nginx
This commit is contained in:
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: eng-bot-backend
|
||||
volumes:
|
||||
- backend-data:/app/data
|
||||
expose:
|
||||
- "8000"
|
||||
environment:
|
||||
- DEBUG=False
|
||||
- DATA_DIR=/app/data
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- NUXT_PUBLIC_API_BASE=http://localhost:3001
|
||||
container_name: eng-bot-frontend
|
||||
expose:
|
||||
- "3000"
|
||||
environment:
|
||||
- NUXT_PUBLIC_API_BASE=http://localhost:3001
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: eng-bot-nginx
|
||||
ports:
|
||||
- "3001:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
backend-data:
|
||||
Reference in New Issue
Block a user