-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.skeleton.yml
executable file
·55 lines (52 loc) · 1.66 KB
/
docker-compose.skeleton.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
version: '2' # IT MUST version 2 for support "ip_range"
#================================================================================================
# NETWORK SETUP
#================================================================================================
networks:
dockube-net:
driver: ${NETWORKS_DRIVER}
ipam:
config:
- subnet: 172.212.0.0/16 # 65534 Hosts / Net
ip_range: 172.212.5.0/24
gateway: 172.212.5.254
#================================================================================================
# VOLUME SETUP
#================================================================================================
volumes:
dockube-master:
driver: ${VOLUMES_DRIVER}
services:
#================================================================================================
# MASTER
#================================================================================================
dockube-master:
restart: unless-stopped
build:
context: .
args:
- INSTALL_GOLANG=${WORKSPACE_INSTALL_GOLANG}
container_name: dockube_master
hostname: dockube-master
#domainname: dockube-master
expose:
- "22"
- "22/tcp"
- "2379"
- "2379/tcp"
- "6443"
- "6443/tcp"
- "10251"
- "10251/tcp"
ports:
- ${MASTER_PORT}:22/tcp
### DO NOT USE FOR "docker registry / build images" ###
# volumes:
# - /etc/localtime:/etc/localtime:ro
# - /var/run/docker.sock:/var/run/docker.sock
environment:
- UBUNTU_VERSION=${UBUNTU_VERSION}
privileged: true
networks:
dockube-net:
ipv4_address: 172.212.0.6