Commit f7a1469e9314d962b99deebb89e19e98962e7c88

Authored by João Vitor Rebouças
1 parent 9ea1e9e0
Exists in master

Atualizando docker-composes de produção

external-lb-docker.yml
... ... @@ -5,6 +5,8 @@ services:
5 5 ports:
6 6 - 80:80/tcp
7 7 - 8080:8080/tcp
  8 + - 200:200/tcp
  9 + - 201:201/tcp
8 10 labels:
9 11 io.rancher.container.agent.role: environmentAdmin
10 12 io.rancher.container.create_agent: 'true'
... ...
external-lb-rancher.yml
... ... @@ -5,30 +5,64 @@ services:
5 5 lb_config:
6 6 certs: []
7 7 port_rules:
8   - - path: /translate
9   - priority: 1
  8 + - hostname: video.vlibras.preprod.nuvem.gov.br
  9 + priority: 12
10 10 protocol: http
11   - service: tradutor/api
  11 + service: video/video
  12 + source_port: 80
  13 + target_port: 8080
  14 + - hostname: vlibras.preprod.nuvem.gov.br
  15 + priority: 13
  16 + protocol: http
  17 + service: portal/web
  18 + source_port: 80
  19 + target_port: 8080
  20 + - hostname: traducao.vlibras.preprod.nuvem.gov.br
  21 + priority: 14
  22 + protocol: http
  23 + service: traducao/api
12 24 source_port: 80
13 25 target_port: 8080
14   - - path: /video
15   - priority: 2
  26 + - hostname: dicionario.vlibras.preprod.nuvem.gov.br
  27 + priority: 15
16 28 protocol: http
17   - service: tradutor/api
  29 + service: traducao/api
18 30 source_port: 80
19 31 target_port: 8080
20   - - priority: 3
  32 + - hostname: video.vlibras.preprod.nuvem.gov.br
  33 + path: ''
  34 + priority: 16
  35 + protocol: http
  36 + service: video/video
  37 + source_port: 80
  38 + target_port: 8080
  39 + - hostname: video.vlibras.preprod.nuvem.gov.br
  40 + priority: 17
21 41 protocol: http
22 42 service: video/video
23 43 source_port: 8080
24 44 target_port: 8080
25   - - priority: 4
  45 + - hostname: wiki.vlibras.preprod.nuvem.gov.br
  46 + priority: 18
26 47 protocol: http
27   - service: portal/web
  48 + service: wikilibras/web
28 49 source_port: 80
29   - target_port: 8080
  50 + target_port: 80
  51 + - hostname: wiki.vlibras.preprod.nuvem.gov.br
  52 + priority: 19
  53 + protocol: http
  54 + service: wikilibras/web
  55 + source_port: 200
  56 + target_port: 200
  57 + - hostname: wiki.vlibras.preprod.nuvem.gov.br
  58 + priority: 20
  59 + protocol: http
  60 + service: wikilibras/web
  61 + source_port: 201
  62 + target_port: 201
30 63 stickiness_policy:
31 64 cookie: lb-vlibras
  65 + domain: vlibras.preprod.nuvem.gov.br
32 66 indirect: false
33 67 mode: insert
34 68 nocache: false
... ... @@ -39,3 +73,4 @@ services:
39 73 port: 42
40 74 unhealthy_threshold: 3
41 75 interval: 2000
  76 + strategy: recreate
... ...
portal-docker.yml
... ... @@ -11,27 +11,23 @@ volumes:
11 11 driver: 'null'
12 12 services:
13 13 web:
14   - image: hub.docker.planejamento.gov.br/vlibras/portal:1.0.1
  14 + image: hub.docker.planejamento.gov.br/vlibras/portal:1.0.2
15 15 environment:
16   - DOMAIN_NAME: vlibras.preprod.nuvem.gov.br:80
17   - VLIBRAS_API: video.vlibras.preprod.nuvem.gov.br:80
18   - VLIBRAS_API_URL: http://video.vlibras.preprod.nuvem.gov.br/api/
  16 + DATABASE_DB: vlibrasvideo
19 17 DATABASE_HOST: db
20   - DATABASE_USER: vlibrasuser
21 18 DATABASE_PASSWORD: d426ff41c6d096db6f033c89b17b403e
22   - DATABASE_DB: vlibrasvideo
  19 + DATABASE_USER: vlibrasuser
  20 + DOMAIN_NAME: vlibras.preprod.nuvem.gov.br
  21 + VLIBRAS_API: video.vlibras.preprod.nuvem.gov.br:80
  22 + VLIBRAS_API_URL: http://video.vlibras.preprod.nuvem.gov.br/api/
23 23 volumes:
24 24 - portal_data:/vlibraslportal/
25 25 - portal_logs:/myapp/log
26 26 links:
27   - - redis:redis
28 27 - db:db
  28 + - redis:redis
29 29 labels:
30 30 io.rancher.container.pull_image: always
31   - redis:
32   - image: hub.docker.planejamento.gov.br/capgov/redis:3.2.8
33   - command:
34   - - /etc/redis/redis.conf
35 31 db:
36 32 image: hub.docker.planejamento.gov.br/capgov/mysql:5.6
37 33 environment:
... ... @@ -41,3 +37,9 @@ services:
41 37 MYSQL_USER: vlibrasuser
42 38 volumes:
43 39 - portal_db:/var/lib/mysql
  40 + command:
  41 + - --general-log=1
  42 + redis:
  43 + image: hub.docker.planejamento.gov.br/capgov/redis:3.2.8
  44 + command:
  45 + - /etc/redis/redis.conf
... ...
portal-rancher.yml
... ... @@ -3,9 +3,9 @@ services:
3 3 web:
4 4 scale: 1
5 5 start_on_create: true
6   - redis:
  6 + db:
7 7 scale: 1
8 8 start_on_create: true
9   - db:
  9 + redis:
10 10 scale: 1
11 11 start_on_create: true
... ...
tradutor-docker.yml
... ... @@ -3,13 +3,13 @@ volumes:
3 3 tradutor_logs:
4 4 external: true
5 5 driver: 'null'
6   - tradutor_bd:
  6 + tradutor_rabbitmq:
7 7 external: true
8 8 driver: 'null'
9 9 core_db:
10 10 external: true
11 11 driver: 'null'
12   - tradutor_rabbitmq:
  12 + tradutor_bd:
13 13 external: true
14 14 driver: 'null'
15 15 services:
... ... @@ -27,7 +27,7 @@ services:
27 27 - core_db:/home/vlibras/storage/
28 28 - tradutor_logs:/home/vlibras/translate-api/logs
29 29 links:
30   - - mongo:mongo
31 30 - rabbit:rabbit
  31 + - mongo:mongo
32 32 labels:
33 33 io.rancher.container.pull_image: always
... ...
video-docker.yml
1 1 version: '2'
2 2 volumes:
3   - videos_bd:
  3 + video_bd:
4 4 external: true
5 5 driver: 'null'
6 6 videos_rabbitmq:
... ... @@ -12,11 +12,14 @@ volumes:
12 12 video_logs:
13 13 external: true
14 14 driver: 'null'
  15 + video_py_logs:
  16 + external: true
  17 + driver: 'null'
15 18 services:
16 19 mongo:
17 20 image: hub.docker.planejamento.gov.br/capgov/mongodb
18 21 volumes:
19   - - videos_bd:/data/db
  22 + - video_bd:/data/db
20 23 rabbit:
21 24 image: hub.docker.planejamento.gov.br/capgov/rabbitmq:3.6.9-1-management
22 25 volumes:
... ... @@ -29,7 +32,7 @@ services:
29 32 volumes:
30 33 - core_storage:/storage/
31 34 - video_logs:/home/vlibras/vlibras-api/logsystem/logs
32   - - vide_py_logs:/home/vlibras/log
  35 + - video_py_logs:/home/vlibras/log
33 36 links:
34 37 - mongo:mongo
35 38 - rabbit:rabbit
... ...
wikilibras-docker.yml 0 → 100644
... ... @@ -0,0 +1,68 @@
  1 +version: '2'
  2 +volumes:
  3 + wikilibras_blender:
  4 + external: true
  5 + driver: 'null'
  6 + wikilibras_mongodb:
  7 + external: true
  8 + driver: 'null'
  9 + wikilibras-corretor_videos:
  10 + external: true
  11 + driver: 'null'
  12 + wikilibras-validador_videos:
  13 + external: true
  14 + driver: 'null'
  15 + wikilibras-wikilibrasv2_videos:
  16 + external: true
  17 + driver: 'null'
  18 + wikilibras_redis:
  19 + external: true
  20 + driver: 'null'
  21 + wikilibras-corretor_uploads:
  22 + external: true
  23 + driver: 'null'
  24 + wikilibras-wikilibrasv2_uploads:
  25 + external: true
  26 + driver: 'null'
  27 + wikilibras-core_users:
  28 + external: true
  29 + driver: 'null'
  30 + wikilibras_sinais:
  31 + external: true
  32 + driver: 'null'
  33 + wikilibras_avatar:
  34 + external: true
  35 + driver: 'null'
  36 + wikilibras_uploads:
  37 + external: true
  38 + driver: 'null'
  39 + wikilibras-validador_uploads:
  40 + external: true
  41 + driver: 'null'
  42 + wikilibras_apache2_logs:
  43 + external: true
  44 + driver: 'null'
  45 + wikilibras_postgresql:
  46 + external: true
  47 + driver: 'null'
  48 +services:
  49 + web:
  50 + image: hub.docker.planejamento.gov.br/vlibras/wikilibras:1.0.4
  51 + stdin_open: true
  52 + volumes:
  53 + - wikilibras_postgresql:/var/lib/postgresql
  54 + - wikilibras_mongodb:/var/lib/mongodb
  55 + - wikilibras_redis:/var/lib/redis
  56 + - wikilibras_blender:/home/vlibras/container/wikilibrasdbapi/blender
  57 + - wikilibras_sinais:/home/vlibras/container/wikilibrasdbapi/sinais
  58 + - wikilibras_avatar:/home/vlibras/container/wikilibrasdbapi/avatar
  59 + - wikilibras_uploads:/home/vlibras/container/wikilibrasdbapi/uploads
  60 + - wikilibras_apache2_logs:/var/log/apache2
  61 + - wikilibras-wikilibrasv2_videos:/home/vlibras/container/wikilibrasV2/view/videos
  62 + - wikilibras-corretor_videos:/home/vlibras/container/corretor_sinais/view/videos
  63 + - wikilibras-validador_videos:/home/vlibras/container/validador_sinais/view/videos
  64 + - wikilibras-wikilibrasv2_uploads:/home/vlibras/container/wikilibrasV2/view/uploads
  65 + - wikilibras-corretor_uploads:/home/vlibras/container/corretor_sinais/view/uploads
  66 + - wikilibras-validador_uploads:/home/vlibras/container/validador_sinais/view/uploads
  67 + - wikilibras-core_users:/home/vlibras/container/wikilibras-core/users
  68 + tty: true
... ...
wikilibras-rancher.yml 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +version: '2'
  2 +services:
  3 + web:
  4 + scale: 1
  5 + start_on_create: true
... ...