-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 986 Bytes
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 986 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
52
53
54
55
56
57
name: caddy-tutorial-example
networks:
caddy_tutorial_network:
volumes:
caddy_data:
caddy_config:
services:
www:
networks:
- caddy_tutorial_network
expose:
- 3000
environment:
- PORT=3000
working_dir: /app
command: node www.js
build:
args:
NAME: www
context: .
dockerfile: ./Dockerfile
admin:
networks:
- caddy_tutorial_network
expose:
- 3001
environment:
- PORT=3001
working_dir: /app
command: node admin.js
build:
args:
NAME: admin
context: .
dockerfile: ./Dockerfile
caddy:
image: caddy:2.11.2-alpine
networks:
- caddy_tutorial_network
ports:
- "127.0.0.11:80:80"
- "127.0.0.11:443:443"
depends_on:
- www
- admin
volumes:
- ./certs:/etc/caddy/certs
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
cap_add:
- NET_ADMIN