-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.19 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.8"
services:
ieee-election:
container_name: ieee-election
build:
context: .
args:
PORT: ${WS_PORT}
restart: unless-stopped
volumes:
- web-files:/usr/src/app/dist
- $PWD/.env:/usr/src/app/.env
depends_on:
- redis
redis:
container_name: redis
image: bitnami/redis:6.2
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- redis-data:/bitnami/redis/data
caddy:
container_name: caddy
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- WS_PORT=${WS_PORT}
volumes:
- web-files:/srv
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy-data:/data
- caddy-config:/config
depends_on:
- ieee-election
volumes:
web-files:
name: web-files
redis-data:
name: redis-data
caddy-data:
name: caddy-data
caddy-config:
name: caddy-config