-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
68 lines (68 loc) · 1.97 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
version: "3"
services:
db:
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: PASSWORDGOESHERE
backend:
build: .
ports:
- "3380:80"
- "33443:443"
environment:
# ASPNETCORE_ENVIRONMENT: "Production"
# ASPNETCORE_DBPASSWORD: "PASSWORDGOESHERE"
# ASPNETCORE_ADLER_MOODLEURL: "http://moodle:8080"
# ASPNETCORE_ADLER_HTTPPORT: 80
# ASPNETCORE_ADLER_USEHTTPS: false
ASPNETCORE_ENVIRONMENT: "Production"
ASPNETCORE_DBUSER: root
ASPNETCORE_DBPASSWORD: PASSWORDGOESHERE
ASPNETCORE_DBNAME: adlerbackend
ASPNETCORE_DBHOST: db
ASPNETCORE_DBPORT: 3306
ASPNETCORE_ADLER_MOODLEURL: "http://moodle:8080"
ASPNETCORE_ADLER_HTTPPORT: 80
ASPNETCORE_ADLER_USEHTTPS: false
ASPNETCORE_ADLER_MOODLEHOST: http://localhost
volumes:
# - ./AdLerBackend.API/config:/app/config # Default location für config Datei
- wwwroot:/app/wwwroot
mariadb:
image: docker.io/bitnami/mariadb:10.6
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- MARIADB_CHARACTER_SET=utf8mb4
- MARIADB_COLLATE=utf8mb4_unicode_ci
volumes:
- 'mariadb_data:/bitnami/mariadb'
moodle:
image: docker.io/bitnami/moodle:4.2
ports:
- '80:8080'
- '443:8443'
environment:
- MOODLE_DATABASE_HOST=mariadb
- MOODLE_DATABASE_PORT_NUMBER=3306
- MOODLE_DATABASE_USER=bn_moodle
- MOODLE_DATABASE_NAME=bitnami_moodle
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MOODLE_HOST=http://localhost
volumes:
- 'moodle_data:/bitnami/moodle'
- 'moodledata_data:/bitnami/moodledata'
depends_on:
- mariadb
volumes:
wwwroot:
mariadb_data:
driver: local
moodle_data:
driver: local
moodledata_data:
driver: local