-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
151 lines (136 loc) · 5.47 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
services:
cache:
image: redis:7.2-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
timeout: 3s
retries: 3
start_period: 10s
db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
# init settings, executed only on deploy
- "./postgres/:/docker-entrypoint-initdb.d"
# database data
- "~/projetos/IFRN/ava/volumes/db_data:/var/lib/postgresql/data"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 3s
timeout: 3s
retries: 3
start_period: 10s
nginx:
image: nginx:1.23.3-alpine
volumes:
# confs
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/error_pages:/usr/share/nginx/error_pages
ports:
- 80:80
depends_on:
- painel
- ava
painel:
image: ctezlifrn/avapainel:1.1.3
build:
context: ~/projetos/IFRN/ava/integration/painel-ava
# additional_contexts:
# django-adminlte3: ../django-adminlte3
environment:
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DJANGO_DEBUG=true
- DJANGO_ALLOWED_HOSTS=ava,localhost
# 1. Crie uma chave, em qualquer ferramenta, de no mímino 50 caracteres
- DJANGO_SECRET_KEY=changeme
# 2. Crie um project no Sentr.io e pegue a DNS
# SENTRY_DNS=https://[email protected]/id
# 3. Crie uma "Aplicações OAUTH2" no SUAP e pegue o client_id e o client_secret
- SUAP_OAUTH_CLIENT_ID=k9B1Ah3SZyTmZFMLDT8jeVMhVlySHV4mviUF9z9D
- SUAP_OAUTH_CLIENT_SECRET=k2bjgONnkE7gmKd2NIPOzzhIlHLRz5ifNCanEwJTR8SmjeimYQenEYjj6nU7xHImZ0PdkFp8FsalYk40Y8sjy47pZ0JIna96Y3Zu65SqvfVnl0KGR5vufXzCAhk05f4f
- SUAP_OAUTH_BASE_URL=https://suap.ifrn.edu.br
- SUAP_OAUTH_REDIRECT_URI=http://ava/painel/authenticate/
# 4. Atribua o token de integração do SUAP
- SUAP_INTEGRADOR_KEY=changeme
# 5. Se cadastre no https://userway.org/ e registre o token da conta
- SHOW_USERWAY=False
- USERWAY_ACCOUNT=wPr7IBWf6k
- SHOW_VLIBRAS=False
volumes:
# - '../django-adminlte3:/apps/django-adminlte3'
- "~/projetos/IFRN/ava/integration/painel-ava/src:/apps/app"
- "~/projetos/IFRN/ava/volumes/painel/media:/var/media"
- "~/projetos/IFRN/ava/volumes/painel/static:/var/static"
depends_on:
cache:
condition: service_healthy
db:
condition: service_healthy
ava:
image: ctezlifrn/avamoodle:026
build:
context: ~/projetos/IFRN/ava/lms/moodle
# additional_contexts:
# django-adminlte3: ../django-adminlte3
environment:
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- CFG_ENV=local
- CFG_DEBUG=false
- CFG_WWWROOT=http://ava
- CFG_ADMINUSER=admin
- CFG_ADMINPASS=admin
- CFG_FULLNAME=AVA do Campus ZL do IFRN
- CFG_SHORTNAME=AVA-ZL
- POSTGRES_DATABASE=postgres
volumes:
# Plugins
- "~/projetos/IFRN/ava/lms/local_suap:/var/www/html/local/suap"
- "~/projetos/IFRN/ava/lms/local_pnp:/var/www/html/local/pnp"
- "~/projetos/IFRN/ava/lms/enrol_suap:/var/www/html/enrol/suap"
- "~/projetos/IFRN/ava/lms/auth_suap:/var/www/html/auth/suap"
- "~/projetos/IFRN/ava/lms/block_suapattendance:/var/www/html/blocks/suapattendance"
- "~/projetos/IFRN/ava/lms/theme_moove:/var/www/html/theme/moove"
- "~/projetos/IFRN/ava/lms/format_suap:/var/www/html/format/suap"
- "~/projetos/IFRN/ava/h5p/texteditor/hacks/h5peditor.class.php:/var/www/html/h5p/h5plib/v124/joubel/editor/h5peditor.class.php"
- "~/projetos/IFRN/ava/h5p/texteditor/h5peditor-tinymce.js:/var/www/html/h5p/h5plib/v124/joubel/editor/scripts/h5peditor-tinymce.js"
# Data
- "~/projetos/IFRN/ava/volumes/ava/moodledata:/var/moodledata"
depends_on:
cache:
condition: service_healthy
db:
condition: service_healthy
sass_painel:
image: ctezlifrn/sass:001
build:
context: ~/projetos/IFRN/ava/common/sass
command:
[
"pysass",
"--watch",
"-m",
"--sourcemap-file=/css/main.css.map",
"--sourcemap-contents",
"--sourcemap-embed",
"--omit-sourcemap-url",
"--sourcemap-root=/scss",
"-t",
"expanded",
"-I",
"/scss",
"/scss/main.scss",
"/css/main.css",
]
volumes:
- "~/projetos/IFRN/ava/integration/painel-ava/src/painel/static/dashboard/scss:/scss"
- "~/projetos/IFRN/ava/integration/painel-ava/src/painel/static/dashboard/css:/css"