-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (63 loc) · 1.28 KB
/
docker-compose.yaml
File metadata and controls
67 lines (63 loc) · 1.28 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.4'
services:
caddy:
image: "abiosoft/caddy:latest"
volumes:
- $HOME/.caddy:/root/.caddy # to save certificates on disk
- ./caddy/Caddyfile:/etc/Caddyfile # to mount custom Caddyfile
ports:
- "666:2015"
- "80:80"
- "443:443"
depends_on:
- ss
- frontend
container_name: caddy_server
environment:
- DOMAIN_NAME=localhost
- TLS=off
- ACME_AGREE=false
- ENABLE_TELEMETRY=false
- SS_PORT=5000
- FRONTEND_PORT=5001
networks:
- caddy-net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
PORT: 5001
command: yarn start
#ports:
# - "5001:80"
container_name: frontend
networks:
- caddy-net
deploy:
restart_policy:
condition: on-failure
delay: 3s
max_attempts: 3
window: 120s
ss:
build:
context: ./signal_server
dockerfile: Dockerfile
environment:
PORT: 5000
command: yarn start
#ports:
# - "5000:80"
container_name: ss
networks:
- caddy-net
deploy:
restart_policy:
condition: on-failure
delay: 3s
max_attempts: 3
window: 120s
networks:
caddy-net:
driver: bridge