-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 995 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 995 Bytes
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
services:
backend:
build: .
privileged: true
restart: always
ports:
- 127.0.0.1:1234:1234
# expose:
# - 1234
volumes:
- .:/home/app
deploy:
# replicas: 1
resources:
limits:
memory: 500M
# restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
# healthcheck:
# test: "curl 'http://localhost:1234/?q=ping'"
# interval: "30s"
# timeout: "3s"
# start_period: "5s"
# retries: 3
proxy:
depends_on:
- backend
build:
context: ./proxy
dockerfile: Dockerfile
restart: always
volumes:
- ./proxy/etc/Caddyfile:/etc/caddy/Caddyfile
ports:
- "80:80"
- "443:443"
- "443:443/udp"
# env_file:
# - ./conf/caddy.env
# - ./conf/caddy_sensitive.env
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "10"