-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.05 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
51
52
53
54
55
56
57
version: "3.7"
services:
nginx:
build:
context: .
dockerfile: ./etc/docker/nginx/Dockerfile
volumes:
- staticfiles:/app/static
- mediafiles:/app/media
depends_on:
- web
web:
build:
context: .
dockerfile: ./etc/docker/web/Dockerfile
image: kmicms_web
command: /start
volumes:
- staticfiles:/wagtail-static
- mediafiles:/wagtail-media
env_file:
- .env
environment:
- REDIS_URL=redis://cache:6379
- SQL_DATABASE=wagtail
- SQL_USER=wagtail
- SQL_PASSWORD=wagtail
- SQL_HOST=db
- SQL_PORT=5432
depends_on:
- cache
- db
cache:
image: redis:7.2-alpine
expose:
- 6379
volumes:
- redis_data:/data
db:
image: postgres:16.1-alpine
expose:
- 5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=wagtail
- POSTGRES_USER=wagtail
- POSTGRES_PASSWORD=wagtail
volumes:
postgres_data:
redis_data:
staticfiles:
mediafiles: