-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
72 lines (65 loc) · 1.35 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
volumes:
database: { }
s3: { }
data: { }
services:
app: &app
build:
context: .
dockerfile: ./docker/app/dev/Dockerfile
depends_on:
- db
- redis
volumes:
- ./app:/app:z
- data:/data
env_file:
- ./.envs/.dev
ports:
- "8000:8000"
command: "python manage.py runserver 0.0.0.0:8000"
db:
build:
context: .
dockerfile: ./docker/postgres/Dockerfile
volumes:
- database:/var/lib/postgresql/data:Z
env_file:
- ./.envs/.dev
redis:
build:
context: .
dockerfile: ./docker/redis/Dockerfile
env_file:
- ./.envs/.dev
worker:
<<: *app
depends_on:
- redis
- db
ports: [ ]
command: celery -A settings.celery worker -l DEBUG --autoscale=1,2
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
env_file:
- ./.envs/.dev
volumes:
- s3:/data
command: server --console-address :9001 /data
keycloak:
build:
context: .
dockerfile: ./docker/keycloak/Dockerfile
volumes:
- ./docker/keycloak/theme:/opt/keycloak/themes/sorbay:z
depends_on:
- db
env_file:
- ./.envs/.dev
ports:
- "8080:8080"
command: start-dev --spi-theme-static-max-age=-1 --spi-theme-cache-themes=false --spi-theme-cache-templates=false