Skip to content

Commit f107ba9

Browse files
committed
Add docker-compose
1 parent e7fc2c9 commit f107ba9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docker-compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '3.4'
2+
3+
4+
networks:
5+
iexec-net:
6+
external: true
7+
8+
services:
9+
worker:
10+
image: nexus.iex.ec/iexec-worker:${WORKER_VERSION}
11+
container_name: worker
12+
environment:
13+
- IEXEC_CORE_HOST=core
14+
- IEXEC_CORE_PORT=18090
15+
- IEXEC_WORKER_NAME=worker
16+
- IEXEC_WORKER_WALLET_PATH=/iexec-wallets/encrypted-wallet_worker1.json
17+
- IEXEC_WORKER_RESULT_BASE_DIR=/tmp/iexec-worker
18+
ports:
19+
- 18091:18091
20+
volumes:
21+
- ./src/main/resources/wallet/encrypted-wallet_worker1.json:/iexec-wallets/encrypted-wallet_worker1.json
22+
- /tmp/iexec-worker/worker:/tmp/iexec-worker/worker
23+
- /var/run/docker.sock:/var/run/docker.sock
24+
restart: on-failure
25+
networks:
26+
- iexec-net

0 commit comments

Comments
 (0)