This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.66 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
# fake bobcat miner service
fancy-awesome-bobcat:
image: fancy-awesome-bobcat
hostname: fancy-awesome-bobcat
container_name: fancy-awesome-bobcat
ports:
- "80:80"
build:
context: ./fancy-awesome-bobcat
dockerfile: ./Dockerfile
volumes:
- ./fancy-awesome-bobcat/src/app:/app
networks:
bobcatnet:
# set the service to a static IP to simulate a Bobcat with a DHCP reservation
ipv4_address: "172.18.0.10"
# bobcat-miner-python command line tools
bobcat-miner-python-dev:
image: bobcat-miner-python-dev
hostname: bobcat-miner-python-dev
container_name: bobcat-miner-python-dev
environment:
BOBCAT_HOSTNAME: "fancy-awesome-bobcat"
BOBCAT_ANIMAL: "fancy-awesome-bobcat"
BOBCAT_NETWORKS: "192.168.0.0/24 10.0.0.0/24 172.16.0.0/24 172.18.0.0/24"
BOBCAT_DRY_RUN: "FALSE"
BOBCAT_NO_WAIT: "TRUE"
BOBCAT_VERBOSE: "FALSE"
BOBCAT_TRACE: "FALSE"
BOBCAT_LOCK_FILE: "/etc/bobcat/autopilot.lock"
BOBCAT_STATE_FILE: "/etc/bobcat/autopilot.json"
BOBCAT_LOG_FILE: "/var/log/bobcat/autopilot.log"
# BOBCAT_DISCORD_WEBHOOK_URL: "https://discord.com/api/webhooks/xxx"
BOBCAT_LOG_LEVEL_CONSOLE: "DEBUG"
BOBCAT_LOG_LEVEL_FILE: "DEBUG"
BOBCAT_LOG_LEVEL_DISCORD: "DEBUG"
entrypoint: /usr/bin/tail
command: "-f /dev/null"
build:
context: .
dockerfile: ./Dockerfile.dev
target: dev
volumes:
- .:/app
networks:
- bobcatnet
networks:
bobcatnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.0.0/24
gateway: 172.18.0.1