docker: compose for assets workers
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
rabbit_ssh:
|
||||||
|
image: kroniak/ssh-client
|
||||||
|
command: >
|
||||||
|
ssh -4
|
||||||
|
-i /.ssh/id_rsa
|
||||||
|
-o GatewayPorts=yes
|
||||||
|
-o StrictHostKeyChecking=no
|
||||||
|
-N -T
|
||||||
|
-L 5672:127.0.0.1:5672
|
||||||
|
-L 15672:127.0.0.1:15672
|
||||||
|
proxy_user@storage4.likemath.ru
|
||||||
|
#ports:
|
||||||
|
# - "15672:15672"
|
||||||
|
volumes:
|
||||||
|
- ./z_assets-optimizer:/.ssh/id_rsa:ro
|
||||||
|
restart: on-failure
|
||||||
|
worker:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./logs/:/var/log/assets-bot/
|
||||||
|
- ./z_assets-optimizer:/.ssh/id_rsa:ro
|
||||||
|
environment:
|
||||||
|
- RABBIT_HOST=rabbit_ssh
|
||||||
|
- GIT_PRIVATE_KEY_PATH=/.ssh/id_rsa
|
||||||
|
env_file:
|
||||||
|
- .env.rabbit
|
||||||
|
depends_on:
|
||||||
|
- rabbit_ssh
|
||||||
|
restart: always
|
||||||
Reference in New Issue
Block a user