forked from AnikaLegal/clerk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.17 KB
/
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
version: '3'
services:
# Local development database.
database:
image: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- 25432:5432
# Django webserver.
web:
image: localhost:5000/clerk
command: make web-local
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
volumes:
- ./app:/app
- node_modules:/app/frontend/node_modules
- build:/app/frontend/build
links:
- database
environment:
PGDATABASE: postgres
PGUSER: postgres
PGPASSWORD: password
PGHOST: database
PGPORT: 5432
DJANGO_SETTINGS_MODULE: clerk.settings.dev
# Webpack build for frontend assets.
webpack:
image: localhost:5000/clerk
command: make webpack
build:
context: .
dockerfile: Dockerfile
volumes:
- ./app:/app
- node_modules:/app/frontend/node_modules
- build:/app/frontend/build
volumes:
postgres-data:
node_modules:
build: