-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
117 lines (109 loc) · 2.93 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3.8'
networks:
repoadopt:
name: repoadopt
driver: bridge
services:
postgresql:
image: docker.io/bitnami/postgresql:11
container_name: kong-db
volumes:
- postgresql_data:/bitnami/postgresql
networks:
- repoadopt
environment:
- POSTGRESQL_USERNAME=kong
- POSTGRESQL_PASSWORD=bitnami
- POSTGRESQL_DATABASE=kong
kong:
image: docker.io/bitnami/kong:2
container_name: kong
ports:
- 8100:8000
- 8101:8001
- 8443:8443
environment:
- KONG_MIGRATE=yes
- KONG_ADMIN_LISTEN=0.0.0.0:8001
- KONG_PG_HOST=postgresql
- KONG_PG_PASSWORD=bitnami
networks:
- repoadopt
repoadopt-client:
image: repoadopt/client:transfer_ownership_of_an_adoptable
container_name: repoadopt-client
networks:
- repoadopt
environment:
CONFIGJS: |
window.config = (() => {
return {
VUE_APP_GRAPHQL: "http://$MACHINE_URL:8100",
VUE_APP_AXIOS: "http://$MACHINE_URL:8100",
VUE_APP_PAGINATION_LIMIT: 10,
VUE_APP_CLIENT_ID: "$CLIENT_ID",
VUE_APP_NUCLIO_HOST: "localhost",
VUE_APP_NUCLIO_PORT: 8070
};
})();
MACHINE_URL: $MACHINE_URL
SERVICE_NAME: nginx
CONTAINER_URL: repoadopt-client.repoadopt:80
entrypoint: /bin/sh
volumes:
- ./register_nginx.sh:/register_nginx.sh
- .:/public
command: -c "echo \"$$CONFIGJS\" > /repoadopt/app/config.js; chmod +x ./register_nginx.sh; ./register_nginx.sh; nginx -g \"daemon off;\""
depends_on:
- kong
- repoadopt-graphql
- repoadopt-authentication
repoadopt-mongodb:
image: bitnami/mongodb
container_name: repoadopt-mongodb
expose:
- 27017
ports:
- '27017:27017'
volumes:
- mongodb_data:/bitnami
networks:
- repoadopt
repoadopt-graphql:
image: repoadopt/graphql:chat_with_adoptable
container_name: repoadopt-graphql
environment:
- HOST=mongodb://repoadopt-mongodb.repoadopt/
- DBHOST=27017
- PORT=81
- ENVIRONMENT=deploy
- GATEWAY=kong.repoadopt:8001
- GRAPHQL_URL=repoadopt-graphql.repoadopt:81
- GATEWAY_RETRIES=20
networks:
- repoadopt
depends_on:
- repoadopt-mongodb
- kong
repoadopt-authentication:
image: repoadopt/authentication:develop
container_name: repoadopt-authentication
command: bash -c "python ./security/pem_keys.py && python main.py"
environment:
- CLIENT_SECRET=$CLIENT_SECRET
- PORT=82
- DEVELOPMENT=True
- ISSUER=RepoAdopt
- TOKEN_EXPIRATION_TIME=604800
- GATEWAY=kong.repoadopt:8001
- AUTHENTICATION_URL=repoadopt-authentication.repoadopt:82
- GATEWAY_RETRIES=20
networks:
- repoadopt
depends_on:
- kong
volumes:
postgresql_data:
driver: local
mongodb_data:
driver: local