-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
56 lines (51 loc) · 1018 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
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
db:
build:
context: .
dockerfile: config/docker/db/Dockerfile
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis:latest
volumes:
- redis:/data
expose:
- 6379
imgproxy:
image: darthsim/imgproxy:latest
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "imgproxy", "health"]
env_file:
- config/env/dev.env
ports:
- "9000:9000"
web:
command: /app/run.sh devserver
build: .
volumes:
- ./app/:/app/src
- ./config/django/:/app/config/django/
- mediafiles:/app/mediafiles/
- staticfiles:/app/staticfiles/
- logs:/app/logs/
ports:
- "8000:8000"
env_file:
- ./config/env/dev.env
depends_on:
- db
- redis
- imgproxy
volumes:
db:
redis:
mediafiles:
staticfiles:
logs: