-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 934 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 934 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
version: '3'
volumes:
postgres-data:
node_modules:
services:
web:
container_name: "wagtailtablesweb"
build: ./
working_dir: /code/wagtailtables_demo
command: bash -c "./manage.py migrate && ./manage.py runserver 0.0.0.0:8000"
restart: "no"
volumes:
- ./wagtailtables_demo:/code/wagtailtables_demo:delegated,rw
- ./wagtailtables:/code/wagtailtables/wagtailtables:delegated,rw
ports:
- "8000:8000"
- 3000:3000
environment:
DATABASE_URL: "postgres://wagtail:changeme@db/wagtail"
PYTHONPATH: "/code/wagtail:/code/wagtailtables_demo:$PYTHONPATH"
depends_on:
- db
db:
container_name: "wagtailtablesdb"
image: postgres:12.3-alpine
environment:
POSTGRES_USER: wagtail
POSTGRES_DB: wagtail
POSTGRES_PASSWORD: changeme
volumes:
- postgres-data:/var/lib/postgresql/data
restart: "no"
expose:
- "5432"