-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (55 loc) · 1.15 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
version: '3.8'
networks:
ansible_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.21.0.0/16
gateway: 172.21.0.1
driver_opts:
com.docker.network.bridge.enable_icc: "true"
com.docker.network.driver.mtu: "1500"
services:
### HOST_1 ###
host_1:
image: ubuntu:latest
# expose:
# - "22"
tty: true
container_name: host_1
# volumes:
# - /usr/share/zoneinfo/Europe/Moscow:/etc/localtime
# environment:
# TZ: "Europe/Moscow"
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.001'
memory: 128M
reservations:
cpus: '0.0001'
memory: 64M
networks:
ansible_net:
ipv4_address: 172.21.0.10
### HOST_2 ###
host_2:
image: ubuntu:latest
tty: true
container_name: host_2
environment:
TZ: "Europe/Moscow"
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.001'
memory: 128M
reservations:
cpus: '0.0001'
memory: 64M
networks:
ansible_net:
ipv4_address: 172.21.0.11