-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.01 KB
/
docker-compose.yml
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
version: '3'
services:
chat-app-1:
build:
context: .
dockerfile: Dockerfile
ports:
- "3500:3500"
environment:
- PORT=3500
- CORS_ORIGIN=${CORS_ORIGIN}
- UPSTASH_REDIS_REST_URL=${UPSTASH_REDIS_REST_URL}
chat-app-2:
build:
context: .
dockerfile: Dockerfile
ports:
- "4000:4000"
environment:
- PORT=4000
- CORS_ORIGIN=${CORS_ORIGIN}
- UPSTASH_REDIS_REST_URL=${UPSTASH_REDIS_REST_URL}
chat-app-3:
build:
context: .
dockerfile: Dockerfile
ports:
- "4500:4500"
environment:
- PORT=4500
- CORS_ORIGIN=${CORS_ORIGIN}
- UPSTASH_REDIS_REST_URL=${UPSTASH_REDIS_REST_URL}
caddy:
image: caddy/caddy:2.7.3-alpine
container_name: caddy-server
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config: