-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (33 loc) · 725 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (33 loc) · 725 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
37
38
39
version: '2'
services:
postgres:
image: postgis/postgis:16-3.4
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: .env
django:
build:
context: .
depends_on:
- postgres
- redis
volumes:
# copy static files into a shared volume so the frontend can serve them
- .:/app
- staticfiles:/app/staticfiles
env_file: .env
frontend:
image: osmcha-frontend
depends_on:
- django
volumes:
# frontend serves django app's static files via shared volume
- staticfiles:/srv/www/static/django
env_file: .env
ports:
- "0.0.0.0:8000:80"
redis:
image: redis:latest
volumes:
staticfiles:
postgres_data: