forked from City-of-Helsinki/linkedevents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.16 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
services:
postgres:
image: "postgis/postgis:14-3.2-alpine"
environment:
POSTGRES_USER: linkedevents
POSTGRES_PASSWORD: linkedevents
POSTGRES_DB: linkedevents
ports:
- "127.0.0.1:5555:5432"
volumes:
- postgres-data-volume:/var/lib/postgresql/data
container_name: linkedevents-db
redis:
image: redis:7.0
volumes:
- redis_data:/data
ports:
- "127.0.0.1:6379:6379"
container_name: linkedevents-redis
django:
platform: linux/amd64
restart: unless-stopped
build:
context: ./
dockerfile: ./docker/django/Dockerfile
target: development
env_file:
- ./docker/django/.env
volumes:
- .:/app:cached
- django-media-volume:/var/media/
ports:
- "8080:8000"
depends_on:
- postgres
- redis
container_name: linkedevents-backend
volumes:
postgres-data-volume:
django-media-volume:
redis_data:
networks:
default:
name: helsinki