-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (54 loc) · 1.17 KB
/
docker-compose.yaml
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
59
services:
caddy:
image: caddy:2.7.5
# build:
# context: ./caddy
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
# expose:
# - 5678
working_dir: /tree105/caddy
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./public:/public
- caddy_data:/data
- caddy_config:/config
networks:
- outside
- default
server:
build:
context: ./server
working_dir: /tree105/server
command: python server.py
#command: python -m debugpy --listen 0.0.0.0:5678 server.py
ports:
- "4242:4242"
# - "5678:5678"
volumes:
- .:/tree105
networks:
- default
generator:
build:
context: ./generator
working_dir: /tree105/generator
command: hugo server -s /tree105/generator --disableFastRender --forceSyncStatic --cleanDestinationDir --disableLiveReload -d /tree105/public --bind "0.0.0.0" --port 1313
ports:
- "1313:1313"
volumes:
- .:/tree105
networks:
- default
volumes:
tree105:
caddy_data:
caddy_config:
networks:
outside:
external: true