-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompose.yaml
43 lines (39 loc) · 1002 Bytes
/
compose.yaml
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
volumes:
postgres-data:
services:
wagtail:
build: ./djnd
working_dir: /app
command: ./manage.py runserver 0.0.0.0:8000
volumes:
- ./djnd:/app:delegated,rw
ports:
- "8000:8000"
environment:
DJANGO_DATABASE_HOST: db
DJANGO_DATABASE_NAME: wagtail
DJANGO_DATABASE_USERNAME: wagtail
DJANGO_DATABASE_PASSWORD: changeme
depends_on:
- db
css-compile:
build: ./css-compile
working_dir: /app
command: yarn dev
volumes:
- ./djnd:/app/djnd:delegated,rw
- ./css-compile/src:/app/src:delegated,rw
- ./css-compile/postcss.config.js:/app/postcss.config.js:delegated,rw
- ./css-compile/tailwind.config.js:/app/tailwind.config.js:delegated,rw
depends_on:
- db
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: wagtail
POSTGRES_USER: wagtail
POSTGRES_PASSWORD: changeme
volumes:
- postgres-data:/var/lib/postgresql/data
expose:
- "5432"