-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
63 lines (60 loc) · 1.5 KB
/
compose.yaml
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
62
63
name: perjuryman
services:
server:
build:
context: ./.docker/go
dockerfile: Dockerfile
container_name: server.local
networks:
perjuryman:
ipv4_address: 10.0.3.95
privileged: true
restart: always
sysctls:
net.ipv6.conf.all.disable_ipv6: "1" # disable
tty: true
volumes:
- type: bind
source: ./client
target: /go/src/github.com/GotoRen/perjuryman/client
bind:
create_host_path: true
- type: bind
source: ./server
target: /go/src/github.com/GotoRen/perjuryman/server
bind:
create_host_path: true
working_dir: /go/src/github.com/GotoRen/perjuryman/server
client:
build:
context: ./.docker/go
dockerfile: Dockerfile
container_name: client.local
networks:
perjuryman:
ipv4_address: 10.0.3.96
privileged: true
restart: always
sysctls:
net.ipv6.conf.all.disable_ipv6: "1" # disable
tty: true
volumes:
- type: bind
source: ./client
target: /go/src/github.com/GotoRen/perjuryman/client
bind:
create_host_path: true
- type: bind
source: ./server
target: /go/src/github.com/GotoRen/perjuryman/server
bind:
create_host_path: true
working_dir: /go/src/github.com/GotoRen/perjuryman/client
networks:
perjuryman:
name: perjuryman_link
driver: bridge
ipam:
config:
- subnet: 10.0.3.0/22
enable_ipv6: false