-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 970 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
version: "3.9"
services:
postgres:
image: postgres:14.8-alpine
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
tty: true # Colors
volumes:
- postgres_data:/var/lib/postgresql/data
- data:/data.tar
ports:
- "5432:5432"
restart: unless-stopped
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
tty: true # Colors
volumes_from:
- web:rw
web:
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- ./.env
command: python manage.py runserver 0.0.0.0:8000
tty: true # Colors
ports:
- "8000:8000"
depends_on:
- postgres
volumes:
- .:/code
volumes:
postgres_data:
data: