-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (75 loc) · 1.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
services:
server:
build:
context: .
dockerfile: ./docker/server/Dockerfile
networks:
- opac-net-public
- opac-net-private
hostname: opac-server
container_name: opac-server
volumes:
- ./server/src:/home/opac/src
- ./var:/home/opac/var
stop_grace_period: 1s
schema:
image: opac-server:latest
depends_on:
- server
volumes:
- ./var:/home/opac/var
command: scripts/create-schema
worker:
build:
context: .
dockerfile: ./docker/worker/Dockerfile
depends_on:
- broker
networks:
- opac-net-private
- opac-net-public
hostname: opac-worker
container_name: opac-worker
volumes:
- ./server/src:/home/opac/src
- ./var:/home/opac/var
stop_grace_period: 1s
broker:
build:
context: .
dockerfile: ./docker/broker/Dockerfile
networks:
- opac-net-private
hostname: opac-broker
container_name: opac-broker
client:
build:
context: .
dockerfile: ./docker/client/Dockerfile
networks:
- opac-net-public
hostname: opac-client
container_name: opac-client
volumes:
- ./client:/usr/share/nginx/html
proxy:
build:
context: .
dockerfile: ./docker/proxy/Dockerfile
depends_on:
- server
- client
ports:
- 8080:8080
- 8888:8888
networks:
- opac-net-public
hostname: opac-proxy
container_name: opac-proxy
stop_grace_period: 1s
networks:
opac-net-public:
internal: false
opac-net-private:
internal: true