-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.53 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
services:
docker-example-container-security-insecure:
container_name: docker-example-container-security-insecure
hostname: docker-example-container-security-insecure
image: ghcr.io/antonio-alexander/docker-example-container-security:insecure
restart: "always"
ports:
- "8080:8080"
environment:
HTTP_PORT: "8080"
CERT_FILE: ${CERT_FILE:-/usr/local/share/ca-certificates/server.crt}
KEY_FILE: ${KEY_FILE:-/usr/local/share/ca-certificates/server.key}
HTTPS_ENABLED: ${HTTPS_ENABLED:-true}
RUNTIME_SECRET: ${RUNTIME_SECRET:-runtime_secret}
volumes:
- ./certs:/usr/local/share/ca-certificates
- ./tmp:/tmp
docker-example-container-security-secure:
container_name: docker-example-container-security-secure
hostname: docker-example-container-security-secure
image: ghcr.io/antonio-alexander/docker-example-container-security:secure
restart: "always"
ports:
- "8081:8080"
user: "${UID:-1001}:${UID:-1001}"
environment:
HTTP_PORT: "8080"
CERT_FILE: ${CERT_FILE:-/usr/local/share/ca-certificates/server.crt}
KEY_FILE: ${KEY_FILE:-/usr/local/share/ca-certificates/server.key}
HTTPS_ENABLED: ${HTTPS_ENABLED:-true}
RUNTIME_SECRET: ${RUNTIME_SECRET:-runtime_secret}
networks:
- secure
volumes:
- ./certs:/usr/local/share/ca-certificates
- ./tmp:/tmp
networks:
insecure:
driver: host
secure:
driver: bridge
ipam:
config:
- subnet: "172.20.0.0/24"
gateway: "172.20.0.1"