-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
93 lines (86 loc) · 1.91 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
db:
image: postgres:13
volumes:
- ./db:/var/lib/postgresql/data:delegated
- ./db_dumps:/var/lib/postgresql/dumps:delegated
- ./docker/local/postgres:/docker-entrypoint-initdb.d:delegated
ports:
- "8881:5432"
env_file: docker-compose.env
networks:
- webnet
web:
build:
context: .
dockerfile: docker/local/Dockerfile
entrypoint: docker/local/entrypoint.sh
volumes:
- .:/usr/src/app:delegated
env_file: docker-compose.env
# Running the main service directly within the contain is helpful
command: python3.9 ./manage.py runserver 0:8000
ports:
- "8880:8000"
- "8882:22"
depends_on:
- db
networks:
- webnet
redis:
image: redis
ports:
- "8889:6379"
networks:
- webnet
mocksso:
image: ukti/mock-sso
environment:
MOCK_SSO_PORT: "8888"
MOCK_SSO_SCOPE: "test"
MOCK_SSO_USERNAME: "test-user"
MOCK_SSO_TOKEN: "jkl-mno-pqr"
MOCK_SSO_EMAIL_USER_ID: "[email protected]"
ports:
- "8888:8888"
networks:
- webnet
celery_worker:
build:
context: .
dockerfile: docker/local/Dockerfile
command: celery -A config.celery worker -l INFO
volumes:
- .:/usr/src/app:delegated
env_file: docker-compose.env
depends_on:
- redis
- db
networks:
- webnet
celery_beat:
build:
context: .
dockerfile: docker/local/Dockerfile
command: celery -A config.celery beat -l INFO
volumes:
- .:/usr/src/app:delegated
env_file: docker-compose.env
depends_on:
- redis
- db
networks:
- webnet
flower:
image: mher/flower
container_name: flower
command: celery flower
environment:
- CELERY_BROKER=redis://redis:6379/1
- FLOWER_PORT=8777
ports:
- "8777:8777"
networks:
- webnet
networks:
webnet: