-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (40 loc) · 927 Bytes
/
docker-compose.dev.yml
File metadata and controls
45 lines (40 loc) · 927 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
39
40
41
42
43
44
45
# Local dev environment
version: "3.8"
services:
# Database
db:
image: postgres:12
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- "5432"
friendo-site:
build:
target: friendo_site
ports:
- 8000:8000
depends_on:
- db
command: -c "pipenv install --dev && python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
environment:
- DEBUG=TRUE
- DJANGO_SECRET_KEY=NotSecretDontUseInProduction
- POSTGRES_DB=postgres
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
restart: "no"
volumes:
- .:/code
chromedriver:
image: selenium/standalone-chrome
ports:
- 4444:4444
links:
- friendo-site:chromedriver
volumes:
postgres_data: