-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.26 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
version: '3.8'
services:
db:
image: postgres:13.1
restart: always
container_name: db
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: librarian
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
networks:
- lib-network
librarian-app:
build:
context: .
dockerfile: container/Dockerfile
target: librarian-app
container_name: librarian
environment:
LIBRARIAN_CONFIG_PATH: /usr/src/app/container/server-config-docker.json
stdin_open: true
tty: true
depends_on:
- db
- librarian-store
ports:
- 21108:21108
volumes:
- .:/usr/src/app
networks:
- lib-network
secrets:
- id_rsa
- id_rsa_pub
librarian-store:
build:
context: .
dockerfile: container/Dockerfile
target: librarian-store
container_name: libstore
hostname: libstore
volumes:
- libstore:/data
ports:
- "2222:22"
restart: unless-stopped
networks:
- lib-network
secrets:
- id_rsa_pub
volumes:
pgdata:
driver: local
libstore:
networks:
lib-network:
secrets:
id_rsa:
file: ./container/secrets/id_rsa.txt
id_rsa_pub:
file: ./container/secrets/id_rsa_pub.txt