-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
31 lines (30 loc) · 1016 Bytes
/
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
version: '3.1'
services:
tarantool:
container_name: jobserver_tarantool
image: tarantool/tarantool:1
restart: always
volumes:
- ./app/config/jobserver_config.lua:/opt/tarantool/jobserver_config.lua
- ./app/jobserver.lua:/usr/share/tarantool/jobserver.lua
- ./app/monitor.lua:/usr/share/tarantool/monitor.lua
- ./app/jobserver_instance.lua:/opt/tarantool/jobserver_instance.lua
command: tarantool /opt/tarantool/jobserver_instance.lua
ports:
- "3301:3301"
environment:
- TARANTOOL_USER_NAME
- TARANTOOL_USER_PASSWORD
- TARANTOOL_MONITOR_HOST
- TARANTOOL_MONITOR_PORT
worker:
container_name: jobserver_worker
restart: always
build: ./docker/worker
image: jobserver:worker
working_dir: /opt/jobserver
command: vendor/bin/jobqueue run default --host tarantool --config app/config/jobqueue.php --executors-config app/config/executors.php
volumes:
- .:/opt/jobserver
depends_on:
- tarantool