forked from mendhak/docker-http-https-echo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (40 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
48 lines (40 loc) · 1.1 KB
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.4"
services:
test_localnet_ip:
image: http-https-echo
container_name: http-https-echo
build: .
environment:
- HTTP_PORT=80
- HTTPS_PORT=443
ports:
- "8080:80"
- "8443:443"
- "80:80"
- "443:443"
volumes:
# save rebuilding image each time
- ./index.js:/app/index.js
# - /etc/ssl/certs/ssl-cert-snakeoil.pem:/app/fullchain.pem
# - /etc/ssl/private/ssl-cert-snakeoil.key:/app/privkey.pem
networks:
HomeLAN:
# this will appear on the local LAN (not a virtual IP)
ipv4_address: 172.30.5.3
networks:
HomeLAN:
driver: macvlan
driver_opts:
# set physical NIC eg. eth0 or physical NIC _and_ VLAN tag here eg. eth0.10
parent: eth1
ipam:
driver: default
config:
- subnet: 172.30.5.0/24
gateway: 172.30.5.254
# our range is .1 to .6
ip_range: 172.30.5.0/29
aux_addresses:
# IPs to ignore in the range above - don't hand these out to the containers
rpi_one: 172.30.5.1