-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
63 lines (58 loc) · 1.2 KB
/
build.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
database:
image: "postgres:latest"
env_file:
- .env
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: "redis:latest"
env_file:
- .env
server:
build:
context: ./Mediatheke
dockerfile: Dockerfile
env_file:
- .env
depends_on:
- database
- redis
- typesense
volumes:
- ./Mediatheke:/Mediatheke
restart: always
client:
build:
context: ./Mediatheke-Client
dockerfile: Dockerfile.prod
depends_on:
- server
nginx:
image: nginx:latest
ports:
- 7080:80
volumes:
- ./Configuration/prod.conf:/etc/nginx/conf.d/default.conf
- ./Configuration/certs:/etc/nginx/ssl
depends_on:
- server
typesense:
image: typesense/typesense:0.25.0
restart: on-failure
volumes:
- ./typesense-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8108/health"]
interval: 10s
timeout: 5s
retries: 5
command: "--data-dir /data --api-key=xyz --enable-cors"
volumes:
db-data:
driver: local
event-data:
driver: local