-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (63 loc) · 2 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
---
networks:
geoda2_net:
ipam:
driver: default
config:
- subnet: 172.101.0.0/24
services:
db:
command: |
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,ANSI_QUOTES,NO_AUTO_CREATE_USER
--transaction-isolation=READ-COMMITTED
env_file: ./env/common.env
image: mariadb:10.11
networks:
geoda2_net:
ipv4_address: 172.101.0.2
ports:
- "3307:3306"
restart: always
user: "${UID}:${GID}"
volumes:
- ./data:/var/lib/mysql
web:
build:
context: .
dockerfile: Dockerfile
command: uwsgi
env_file:
- ./env/common.env
- ./env/geoda2.env
depends_on:
- db
labels:
ofelia.enabled: "true"
ofelia.job-exec.profesores.schedule: "0 35 06 * * *"
ofelia.job-exec.profesores.command: "python manage.py crear_usuarios"
ofelia.job-exec.matriculas.schedule: "0 40 06 * * *"
ofelia.job-exec.matriculas.command: "python manage.py matricular_pod"
ofelia.job-exec.grupossigma.schedule: "0 45 06 * * *"
ofelia.job-exec.grupossigma.command: "python manage.py matricular_grupo_sigma"
networks:
geoda2_net:
ipv4_address: 172.101.0.3
ports:
- protocol: tcp
published: 8001
target: 8001
restart: always
ofelia:
command: daemon --docker
depends_on:
- web
environment:
- "TZ=Europe/Madrid"
image: mcuadros/ofelia:latest
networks:
geoda2_net:
ipv4_address: 172.101.0.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro