-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1012 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
# Next.js frontend
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: nextjs
ports:
- "3000:3000"
environment:
- NODE_ENV=production
depends_on:
- backend
networks:
- app-network
# Django backend
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: django
ports:
- "8000:8000"
environment:
- DJANGO_ENV=production
volumes:
- ./backend:/backend
networks:
- app-network
# Database (PostgreSQL, if applicable)
# Uncomment and configure the database if needed.
# db:
# image: postgres:latest
# container_name: postgres
# environment:
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# POSTGRES_DB: your_db
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - app-network
networks:
app-network:
driver: bridge
# volumes:
# postgres_data: