-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 902 Bytes
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
version: '3.8'
services:
frontend:
build:
context: ./frontend
volumes:
- ./frontend:/code
command: npm run start
ports:
- 4200:4200
environment:
NODE_ENV: development
backend:
build:
context: ./backend
volumes:
- ./backend:/code
command: >
sh -c "poetry run python manage.py migrate;
poetry run python manage.py loaddata initial-data.json;
poetry run python manage.py runserver 0.0.0.0:8000"
ports:
- 8000:8000
environment:
DEBUG: 1
DATABASE_URL: postgres://spooky-rentals:password@db/postgres
SECRET_KEY: "dont use me in production"
depends_on:
- db
db:
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=spooky-rentals
- POSTGRES_USER=spooky-rentals
- POSTGRES_PASSWORD=password