forked from Code-Institute-Community/ci-hackathon-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.85 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
services:
hackathon-app:
image: hackathon-app
volumes:
- ./staticfiles/:/hackathon-app/staticfiles/
- ./data/:/hackathon-app/data/
- ./.env:/hackathon-app/.env
# code
- ./accounts/:/hackathon-app/accounts/
- ./competencies/:/hackathon-app/competencies/
- ./custom_slack_provider/:/hackathon-app/custom_slack_provider/
- ./hackadmin/:/hackathon-app/hackadmin/
- ./hackathon/:/hackathon-app/hackathon/
- ./home/:/hackathon-app/home/
- ./images/:/hackathon-app/images/
- ./main/:/hackathon-app/main/
- ./profiles/:/hackathon-app/profiles/
- ./resources/:/hackathon-app/resources/
- ./showcase/:/hackathon-app/showcase/
- ./submissions/:/hackathon-app/submissions/
- ./teams/:/hackathon-app/teams/
- ./templates/:/hackathon-app/templates/
- ./static/:/hackathon-app/static/
environment:
- ENV_FILE=/hackathon-app/.env
- DEVELOPMENT=1
entrypoint: ['python3', 'manage.py', 'runserver', '0.0.0.0:8000']
ports:
- "8000:8000"
tty: true
stdin_open: true
hackathon-worker:
image: hackathon-app
environment:
- ENV_FILE=/hackathon-app/.env
- DEVELOPMENT=1
entrypoint: ["celery", "-A", "main", "worker", "-l", "info"]
volumes:
- ./data/:/hackathon-app/data/
- ./.env:/hackathon-app/.env
mysql:
image: docker.io/mysql:5.6.36
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
# Do NOT use for production
environment:
MYSQL_ROOT_PASSWORD: gummyball
MYSQL_DATABASE: hackathons
MYSQL_USER: hackathon_user
MYSQL_PASSWORD: gummyball
volumes:
- ./data/mysql:/var/lib/mysql
- ./hackathon/:/hackathon-app/hackathon/
smtp:
image: mailhog/mailhog:v1.0.1
ports:
- "8026:8025"
redis:
image: redis