-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (42 loc) · 922 Bytes
/
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
version: "3.9"
services:
mokabackend:
image: mokabackend
build:
context: .
dockerfile: ./Dockerfile
command: python /code/moka/manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
- 5678:5678
environment:
- PORT=8000
env_file:
- ./.env.local
volumes:
- .:/code
depends_on:
- db
- redis
db:
image: postgres
ports:
- 5432:5432
env_file: ./.env.local
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: "redis:6.2.5-alpine"
ports:
- "6379:6379"
# The Redis logs are fairly useless and junk up the output
# when Docker Compose starts up. Trim them down.
logging:
driver: "json-file"
options:
max-size: "1k"
volumes:
# Persist Redis data so it can survive `docker-compose down`.
- ./.redis-volume:/data
volumes:
postgres_data: