-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.example.yml
47 lines (47 loc) · 1.07 KB
/
docker-compose.example.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copy this example file, removing .example from the name
# and you have your stack! Just change to the image name
# you are using and go
# Copy this example file, changing any values that you need
# for your particular setup and you're good to go
version: '3.5'
services:
swarmer:
image: 'stevepentland/swarmer:latest'
depends_on:
- redis
networks:
- swarmer-net
environment:
- REDIS_TARGET=redis
- REDIS_PORT=6379
- RUNNER_HOST_NAME=swarmer
- RUNNER_PORT=8500
- RUNNER_NETWORK=swarmer-net
ports:
- "8500:8500"
deploy:
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
volumes:
- /var/run/docker.sock:/var/run/docker.sock
redis:
image: 'redis:5'
networks:
- swarmer-net
deploy:
placement:
constraints:
- node.role == manager
volumes:
- redis-data:/data
volumes:
redis-data:
networks:
swarmer-net:
name: swarmer-net
driver: overlay