-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathcompose.yaml
48 lines (47 loc) · 954 Bytes
/
compose.yaml
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
version: "3.8"
services:
bot:
build: .
extra_hosts:
- "host.docker.internal:host-gateway"
configs:
- source: robobanana-config
target: /config.yaml
secrets:
- source: robobanana-secrets
target: /secrets.yaml
server:
build:
context: .
dockerfile: ./server/Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- cache
ports:
- "3000:3000"
configs:
- source: robobanana-config
target: /config.yaml
secrets:
- source: robobanana-secrets
target: /secrets.yaml
cache:
image: redis:alpine
ports:
- '6379:6379'
volumes:
- cache:/data
healthcheck:
test: ["CMD", "redis-cli","ping"]
timeout: 1s
interval: 1s
retries: 10
configs:
robobanana-config:
file: ./config.yaml
secrets:
robobanana-secrets:
file: ./secrets.yaml
volumes:
cache: