-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·48 lines (45 loc) · 1.52 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
version: '2' # IT MUST version 2 for support "ip_range"
#================================================================================================
# NETWORK SETUP
#================================================================================================
networks:
dockube-net:
driver: bridge
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-workspace:
driver: local
services:
#================================================================================================
# WORKSPACE
#================================================================================================
dockube-workspace:
restart: unless-stopped
build:
context: .
args:
- INSTALL_ANSIBLE=false
- INSTALL_GOLANG=false
container_name: dockube_workspace
hostname: dockube-workspace
#domainname: dockube-workspace
ports:
- "227:22/tcp"
### DO NOT USE FOR "docker registry / build images" ###
volumes:
# - /etc/localtime:/etc/localtime:ro
# - /var/run/docker.sock:/var/run/docker.sock
- ./workspace:/opt
environment:
- UBUNTU_VERSION=18.04
privileged: true
networks:
dockube-net:
ipv4_address: 172.212.0.14