-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
100 lines (96 loc) · 2.71 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
94
95
96
97
98
99
100
---
services:
badgr:
build:
context: .
dockerfile: Dockerfile
container_name: badgr
command: "./docker/entrypoint.sh"
volumes:
- .:/app
working_dir: /app
environment:
# Be sure to set BADGR_DB_PASSWORD when running docker-compose
- ACCOUNT_SALT=secret
- ALLOW_SEEDS=1
- BADGR_APP_ID=1
- BADGR_DB_HOST=badgr_mysql_db
- BADGR_DB_NAME=badgr
- BADGR_DB_PASSWORD=${BADGR_DB_PASSWORD}
- BADGR_DB_PORT=3306
- BADGR_DB_USER=badgr
- DEBUG=1
- DJANGO_LOG_LEVEL=DEBUG
- DEFAULT_DOMAIN=http://0.0.0.0:8000
- DOMAIN=0.0.0.0:8000
- EDUID_PROVIDER_URL=https://connect.test.surfconext.nl/oidc
- EDUID_REGISTRATION_URL=https://login.test.eduid.nl/register
- EDU_ID_CLIENT=edubadges
- EDU_ID_SECRET=${EDU_ID_SECRET}
- EMAIL_HOST=mailhog
- EMAIL_PORT=1025
- LTI_FRONTEND_URL=localhost
- MEMCACHED_HOST=memcached
- MEMCACHED_PORT=11211
- OIDC_RS_ENTITY_ID=test.edubadges.rs.nl
- OIDC_RS_SECRET=${OIDC_RS_SECRET}
- ROOT_INFO_SECRET_KEY=secret
- SITE_ID=1
- SUPERUSER_NAME=superuser
- SUPERUSER_PWD=secert
- SURF_CONEXT_CLIENT=test.edubadges.nl
- SURF_CONEXT_CLIENT=www.edubadges.nl
- SURF_CONEXT_SECRET=${SURF_CONEXT_SECRET}
- TIME_STAMPED_OPEN_BADGES_BASE_URL=http://0.0.0.0:8000/
- UI_URL=http://0.0.0.0:8080
- UNSUBSCRIBE_SECRET_KEY=secret
- OB3_AGENT_URL_UNIME=https://agent.poc9.eduwallet.nl
- OB3_AGENT_URL_SPHEREON=http://veramo-agent:3000
- OB3_AGENT_AUTHZ_TOKEN_SPHEREON=${OB3_AGENT_AUTHZ_TOKEN_SPHEREON}
networks:
- shared-network
- edubadges-server
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
db:
image: mysql:8.4
container_name: badgr_mysql_db
environment:
MYSQL_ROOT_PASSWORD: ${BADGR_DB_PASSWORD}
MYSQL_DATABASE: badgr
MYSQL_USER: badgr
MYSQL_PASSWORD: ${BADGR_DB_PASSWORD}
ports:
- "3306:3306"
# Health check for MySQL
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-prootpassword"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
networks:
- edubadges-server
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- edubadges-server
memcached:
image: memcached:latest
container_name: memcached
networks:
- edubadges-server
networks:
shared-network:
external: true
edubadges-server:
driver: bridge