-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.01 KB
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
services:
db:
image: postgres:15
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# backend:
# build:
# context: ./backend/base
# dockerfile: Dockerfile
# command: python manage.py runserver 0.0.0.0:8000
# container_name: django-backend
# volumes:
# - ./backend/base:/app
# ports:
# - "8000:8000"
# env_file:
# - .env
# entrypoint: ["/app/entrypoint.sh"]
# depends_on:
# - db
# frontend:
# build:
# context: ./frontend/blog
# dockerfile: Dockerfile
# command: sh -c "yarn build && yarn start"
# container_name: nextjs-frontend
# volumes:
# - ./frontend/blog:/app
# ports:
# - "3000:3000"
# env_file:
# - .env
# depends_on:
# - backend
volumes:
postgres_data: