-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
55 lines (55 loc) · 1.23 KB
/
docker-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
49
50
51
52
53
54
55
version: '2.3'
# ============================================================
# Service specifications.
services:
# ----------------------------------------------------
# Redis storage.
storage:
image: redis
networks:
muzeeglot-network:
aliases:
- redis
command:
- 'redis-server'
- '--appendonly'
- 'yes'
volumes:
- muzeeglot-storage:/data
# ----------------------------------------------------
# Application backend.
api:
build:
context: api
expose:
- 80
networks:
muzeeglot-network:
aliases:
- api
volumes:
- $PWD/api/data:/opt/muzeeglot/data
- muzeeglot-indexes:/opt/muzeeglot/indexes
depends_on:
- storage
# ----------------------------------------------------
# Application frontend
frontend:
build:
context: frontend
target: muzeeglot
ports:
- 80:80
depends_on:
- api
networks:
- muzeeglot-network
# ============================================================
# Network specifications.
networks:
muzeeglot-network:
# ============================================================
# Volume specifications.
volumes:
muzeeglot-storage:
muzeeglot-indexes: