-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
57 lines (52 loc) · 1 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
53
54
55
56
57
version: '3'
services:
redis:
image: redis:7.2.2
restart: unless-stopped
volumes:
- redisdata:/data
logging:
driver: local
webserver:
image: caddy:2.7.5
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- client_dist:/client
- caddy_data:/data
- caddy_config:/config
logging:
driver: local
environment:
SITE_ADDRESS: ${SITE_ADDRESS}
event-publisher:
build:
context: server
dockerfile: Publisher.Dockerfile
environment:
PUBSUB_REDIS_IP: redis
env_file:
- .api.env
logging:
driver: local
depends_on: [ redis ]
restart: on-failure
api:
build:
context: server
dockerfile: Api.Dockerfile
environment:
PUBSUB_REDIS_IP: redis
logging:
driver: local
depends_on: [ redis ]
restart: on-failure
volumes:
redisdata:
caddy_data:
external: true
caddy_config:
client_dist: