-
Notifications
You must be signed in to change notification settings - Fork 124
/
docker-compose.yml
48 lines (44 loc) · 967 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
41
42
43
44
45
46
47
48
version: "3.4"
services:
staticfiles:
build:
context: .
target: staticfiles
args:
BUILD_EXTRAS: dev
image: staticfiles
volumes:
- ./package.json:/app/package.json
- ./package-log.json:/app/package-log.json
- ./client:/app/client:delegated
- ./dpaste/static:/app/dpaste/static
app:
stdin_open: true
tty: true
restart: always
build:
context: .
target: build
args:
BUILD_EXTRAS: dev
image: app
environment:
STATIC_ROOT: /collectstatic
DATABASE_URL: sqlite:////db/dpaste.sqlite
PORT: 8000
volumes:
- .:/app:delegated
- data_collectstatic:/collectstatic
- data_db:/db
ports:
- "8000:8000"
command: ./manage.py runserver 0:8000
migration:
image: app
command: ./manage.py migrate --noinput
volumes:
- .:/app:delegated
- data_db:/db
volumes:
data_db:
data_collectstatic: