forked from nostriphant/transpher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
61 lines (58 loc) · 1.15 KB
/
docker-compose.local.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
60
61
services:
relay:
container_name: transpher_relay
hostname: transpher_relay
#image: rikmeijer84/transpher-relay
build:
context: .
dockerfile: docker/relay.Dockerfile
ports:
- "${RELAY_PORT}:80"
volumes:
- logs:/app/logs
- data:/app/data
networks:
local:
ipv4_address: 10.8.0.8
env_file:
- .env
restart: unless-stopped
agent:
#image: rikmeijer84/transpher-agent
container_name: transpher_agent
hostname: transpher_agent
build:
context: .
dockerfile: docker/agent.Dockerfile
volumes:
- logs:/app/logs
networks:
local:
ipv4_address: 10.8.0.6
env_file:
- .env
depends_on:
- relay
restart: unless-stopped
networks:
local:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"
ipam:
config:
- subnet: 10.8.0.0/16
gateway: 10.8.0.1
volumes:
data:
driver: local
driver_opts:
type: none
o: bind
device: ./data
logs:
driver: local
driver_opts:
type: none
o: bind
device: ./logs