This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
forked from barais/doodlestudent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.72 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
#docker-compose -p tlc up -d
version: "3.7"
services:
backend:
image: backend-tlc
container_name: backend
hostname: backend
depends_on:
- db
build:
context: .
dockerfile: api/src/main/docker/Dockerfile.jvm
restart: always
environment:
- doodle.internalPadUrl=http://etherpad:9001/
- doodle.externalPadUrl=http://pelle.pad.diverse-team.fr/
- quarkus.datasource.jdbc.url=jdbc:mysql://db:3306/tlc?useUnicode=true&serverTimezone=Europe/Paris
frontend:
image: nginx-tlc
container_name: frontend
hostname: frontend
ports:
- "80:8080"
- "443:8443"
build:
context: .
dockerfile: deploy/front-dockerfile2
environment:
- AUTO_LETS_ENCRYPT=yes
- USE_REVERSE_PROXY=yes
- DISABLE_DEFAULT_SERVER=no
- SERVER_NAME=pelle.diverse-team.fr pelle.myadmin.diverse-team.fr pelle.pad.diverse-team.fr
- USE_CLIENT_CACHE=yes
- USE_GZIP=yes
- REVERSE_PROXY_URL=http://localhost/
volumes:
- ./deploy/nginx2.conf:/server-confs/api.conf
- ./deploy/certificates:/etc/letsencrypt
db:
image: mysql
container_name: db
hostname: db
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=tlc
- MYSQL_USER=tlc
- MYSQL_PASSWORD=tlc
etherpad:
image: etherpad/etherpad:latest
container_name: etherpad
hostname: etherpad
ports:
- "9001:9001"
volumes:
- ./api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
mail:
image: bytemark/smtp
restart: always
container_name: mail
hostname: mail
ports:
- "2525:25"