-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 2.38 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
version: '3.7'
services:
app:
image: docker.pkg.github.com/informatik-mannheim/hsma-ctt/ctt-app
depends_on:
- db
environment:
- SPRING_DATASOURCE_DRIVERCLASSNAME=org.postgresql.Driver
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/ctt
- SPRING_DATASOURCE_USERNAME=${DB_USER:-XXbPWmwdRW}
- SPRING_DATASOURCE_PASSWORD=${DB_PW:-grEtwOBI4E}
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_H2_CONSOLE_ENABLED=false
- SERVER_TOMCAT_ACCESSLOG_ENABLED=false
- SERVER_ENV=production
- SERVER_ADDRESS=0.0.0.0
- TZ=${timezone:-Europe/Berlin}
# The URL to prefix absolute URLs with, since nginx handles the outside connections.
- URL_OVERRIDE=${URL_OVERRIDE:-https://localhost/}
# AES Secret used to encrypt personal data in the database, override in .env
- DB_ENCRYPTION_SECRET=${DB_ENCRYPTION_SECRET:-corona-ctt-20201}
# A list of users in the format Username1,EncryptedPassword1,Role1,Role2;Username2,EncryptedPassword2,Role2;
# Override with your own credentials in a .env file next to docker-compose.yml
# Passwords are encrypted using Bcrypt in Java Spring. (Use org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.encode("passwordToEncode") )
# The default passwords used in this file are 'admin' for the admin user and 'test' for both the user and prof login.
# To change dev environment passwords edit WebSecurityConfig::globalSecurityConfiguration.
- USER_CREDENTIALS=${USER_CREDENTIALS:-user,$2a$10$1RyXIZehTC/4Kh1mbOYlqOeE4ImaxQOME5XMVaD2j2405DD/0zYtW,USER;prof,$2a$10$1RyXIZehTC/4Kh1mbOYlqOeE4ImaxQOME5XMVaD2j2405DD/0zYtW,PROF;admin,$2a$10$a7UcofefK8gm5Udh47ub1OJAMMGQqdqabESULmGmlODR4ecEPIsmm,PROF,ADMIN;}
# Override current names of the study rooms
- CTT_STUDYROOMS=L011;L012;L013;L014;L015;L111;L112;L113;L114;L115;L206;L207;L208;L209;L210
restart: always
db:
image: postgres:13-alpine
environment:
- POSTGRES_USER=${DB_USER:-XXbPWmwdRW}
- POSTGRES_PASSWORD=${DB_PW:-grEtwOBI4E}
- POSTGRES_DB=ctt
- TZ=${timezone:-Europe/Berlin}
restart: always
proxy:
image: nginx:1-alpine
environment:
- TZ=${timezone:-Europe/Berlin}
depends_on:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs/:/etc/ssl/certs/:ro
restart: always
ports:
- '80:80'
- '443:443'