blob: 15b75f7f200f346a2504453ca0074979e6c19ae7 (
plain) (
blame)
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"
services:
icanhazallips:
image: icanhazallips
deploy:
resources:
limits:
memory: 256M
logging:
driver: "json-file"
options:
max-size: "100m"
build:
context: .
networks:
- haznet
restart: unless-stopped
entrypoint: ["/icanhazallips/icanhazallips"]
cap_drop:
- ALL
environment:
- APP_ADDR=:8080
- APP_CONTEXT_TIMEOUT=10
- APP_READ_HEADER_TIMEOUT=3
- APP_READ_TIMEOUT=5
- APP_WRITE_TIMEOUT=5
- APP_IDLE_TIMEOUT=5
nginx:
image: haz_nginx
deploy:
resources:
limits:
memory: 256M
logging:
driver: "json-file"
options:
max-size: "100m"
build:
context: .
dockerfile: Dockerfile_nginx
ports:
- "9380:443"
networks:
- haznet
restart: unless-stopped
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- SETGID
- SETUID
- NET_BIND_SERVICE
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
haznet:
driver: bridge
|