-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (83 loc) · 2.02 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
86
version: "3.9"
services:
db:
image: postgres:13.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$db_password # don't forget to export db_password=<password>
ports:
- "5432:5432"
networks: ["custom-net"]
volumes:
- pwm-db-volume:/var/lib/postgresql/data
key-manager:
environment:
- WORD_LIST_PATH=/opt/bin/words.txt
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$db_password
- POSTGRES_HOST=db
- POSTGRES_DATABASE=postgres
- LOCAL_TEST=$LOCAL_TEST
build: ./keys_manager/.
ports:
- "9090:9090"
networks: ["custom-net"]
depends_on:
- db
pwm_authenticator:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$db_password
- POSTGRES_HOST=db
- POSTGRES_DATABASE=postgres
- KEYS_MANAGER_HOST=key-manager:9090
- LOCAL_TEST=$LOCAL_TEST
build: ./pwm_authenticator/.
ports:
- "8080:8080"
networks: ["custom-net"]
depends_on:
- db
- key-manager
pwm_db_init:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$db_password
- POSTGRES_HOST=db
- POSTGRES_DATABASE=postgres
- KEYS_MANAGER_HOST=key-manager:9090
- LOCAL_TEST=$LOCAL_TEST
build: ./pwm_db_api/.
networks: ["custom-net"]
depends_on:
- db
- key-manager
pwm_manager:
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_HOST=db
- POSTGRES_PASSWORD=$db_password
- WORDS_FILENAME=/opt/bin/words.txt
- AUTHENTICATOR_ADDRESS=http://pwm_authenticator:8080
build: ./pwm_manager/.
ports: ["8989:8989"]
networks: ["custom-net"]
depends_on:
- db
- pwm_authenticator
gateway:
environment:
- PWM_MANAGER_HOSTNAME=pwm_manager:8989
build:
context: ./gateway/
dockerfile: ./build/Dockerfile
ports: ["6969:6969"]
networks: ["custom-net"]
depends_on:
- db
- pwm_manager
volumes:
pwm-db-volume: {}
networks:
custom-net: {}