Commit 69a12f481a44af7ccb5ef8f26b07096c8f1997c7
1 parent
4f31c9ff
Exists in
master
and in
1 other branch
Atualização para MPOG
Showing
2 changed files
with
43 additions
and
8 deletions
Show diff stats
compose/docker-compose.yml.example
| ... | ... | @@ -9,11 +9,6 @@ services: |
| 9 | 9 | ports: |
| 10 | 10 | - "27017" |
| 11 | 11 | |
| 12 | - redis: | |
| 13 | - image: redis | |
| 14 | - ports: | |
| 15 | - - "6379" | |
| 16 | - | |
| 17 | 12 | rabbit: |
| 18 | 13 | image: "rabbitmq:3-management" |
| 19 | 14 | ports: |
| ... | ... | @@ -21,15 +16,20 @@ services: |
| 21 | 16 | - "5672" |
| 22 | 17 | volumes: |
| 23 | 18 | - ./rabbitmq:/var/lib/rabbitmq |
| 24 | - | |
| 25 | 19 | |
| 26 | 20 | video: |
| 27 | - build: . | |
| 21 | + build: ./video/ | |
| 28 | 22 | ports: |
| 29 | 23 | - "80:80" |
| 24 | + links: | |
| 25 | + - rabbit | |
| 26 | + - mongo | |
| 30 | 27 | environment: |
| 31 | 28 | - VLIBRAS_VIDEO_IP=150.165.205.38 |
| 32 | 29 | - VLIBRAS_VIDEO_PORT=80 |
| 33 | 30 | volumes: |
| 34 | - - /root/volume/:/storage/ | |
| 31 | + - core_storage:/storage/ | |
| 35 | 32 | restart: always |
| 33 | + | |
| 34 | +volumes: | |
| 35 | + core_storage: | ... | ... |
| ... | ... | @@ -0,0 +1,35 @@ |
| 1 | +version: '2' | |
| 2 | + | |
| 3 | +services: | |
| 4 | + | |
| 5 | + mongo: | |
| 6 | + image: mongo:3.0.4 | |
| 7 | + volumes: | |
| 8 | + - /data/db | |
| 9 | + ports: | |
| 10 | + - "27017" | |
| 11 | + | |
| 12 | + rabbit: | |
| 13 | + image: "rabbitmq:3-management" | |
| 14 | + ports: | |
| 15 | + - "15672" | |
| 16 | + - "5672" | |
| 17 | + volumes: | |
| 18 | + - ./rabbitmq:/var/lib/rabbitmq | |
| 19 | + | |
| 20 | + video: | |
| 21 | + build: ./video/ | |
| 22 | + ports: | |
| 23 | + - "<VIDEO-PORT>:<VIDEO-PORT>" | |
| 24 | + links: | |
| 25 | + - rabbit | |
| 26 | + - mongo | |
| 27 | + environment: | |
| 28 | + - VLIBRAS_VIDEO_IP=<EXTERNAL-VIDEO-IP> | |
| 29 | + - VLIBRAS_VIDEO_PORT=<VIDEO-PORT> | |
| 30 | + volumes: | |
| 31 | + - core_storage:/storage/ | |
| 32 | + restart: always | |
| 33 | + | |
| 34 | +volumes: | |
| 35 | + core_storage: | ... | ... |