-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
85 lines (80 loc) · 2.34 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
services:
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./data/nginx/conf.d:/etc/nginx/conf.d
- ./defaults/templates:/etc/nginx/templates
- ./defaults/nginx.conf:/etc/nginx/nginx.conf
- ./defaults/proxy.conf:/etc/nginx/proxy.conf
depends_on:
artemis:
condition: service_started
jenkins:
condition: service_started
ports:
- "80:80"
networks:
- artemis-net
saml:
image: jamedjo/test-saml-idp
hostname: saml
ports:
- "9980:8080"
volumes:
- ./saml/saml20-sp-remote.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php
- ./saml/config.php:/var/www/simplesamlphp/config/config.php
networks:
- artemis-net
jenkins:
image: jenkins/jenkins:lts
restart: unless-stopped
user: root
volumes:
- ./data/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker:ro
- /usr/bin/com.docker.cli:/usr/bin/com.docker.cli:ro
ports:
- "50000:50000"
- "${JENKINS_HTTP_PORT}:8080"
networks:
- artemis-net
artemis:
image: ghcr.io/ls1intum/artemis:${ARTEMIS_VERSION}
restart: unless-stopped
depends_on:
artemis-db:
condition: service_started
jenkins:
condition: service_started
ports:
- 8080:8080
volumes:
- ./data/artemis-be/config:/opt/artemis/config
- ./data/artemis-be/data:/opt/artemis/data
- ./branding:/opt/artemis/public/content:ro
environment:
- spring.profiles.active=${PROFILES}
- SPRING_DATASOURCE_URL=jdbc:mysql://artemis-db:3306/Artemis?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
networks:
- artemis-net
artemis-db:
image: mysql:8
restart: unless-stopped
volumes:
- ./data/artemis-db:/var/lib/mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=Artemis
command: mysqld --lower_case_table_names=1 --character_set_server=utf8mb4 --collation-server=utf8mb4_unicode_ci --explicit_defaults_for_timestamp
networks:
- artemis-net
cap_add:
- SYS_NICE
networks:
artemis-net:
ipam:
driver: default
config:
- subnet: 10.1.0.0/16