-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (106 loc) · 2.71 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
# SPDX-FileCopyrightText: 2023 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
# This is used for local development only
version: "3.1"
services:
components-db:
image: postgres:12
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
ports:
- 5442:5432
components-api:
build:
context: components-api
dockerfile: Dockerfile.dev
image: components-api
environment:
- DB_URI
- PARTNER_PORTAL_URL
- API_PATH
- API_TOKEN
- OIDC_CLIENT_ID
- OIDC_CLIENT_SECRET
- OIDC_REDIRECT_URI
- OIDC_AUTH_URL
- OIDC_USER_INFO_URL
- OIDC_TOKEN_URL
- OIDC_REVOKE_TOKEN_URL
- ENVIRONMENT
ports:
- 8089:80
volumes:
- "./components-api/app/main:/app/main"
- "../tol-sdk:/packages/tol-sdk:rw"
- ./components-api/migrations/alembic/versions:/migrations/alembic/versions
components-ui:
build:
context: components-ui/.
dockerfile: Dockerfile.dev
image: components-ui
stdin_open: true
environment:
- NODE_ENV=development
- REACT_APP_API_PATH=${API_PATH}
- REACT_APP_PORTAL_URL=${PORTAL_URL}
- REACT_APP_PORTAL_API_PATH=${PORTAL_API_PATH}
- REACT_APP_MATOMO_SITE_ID=${MATOMO_SITE_ID}
ports:
- 3011:3000
volumes:
- "./components-ui/app:/usr/src/app"
- "/usr/src/app/node_modules"
- "/usr/src/app/src/tol-ui/node_modules"
components-api-test:
image: components-api
environment:
- DB_URI
- PARTNER_PORTAL_URL
- OIDC_CLIENT_ID
- OIDC_CLIENT_SECRET
- OIDC_REDIRECT_URI
- POSTGRES_USER
- POSTGRES_PASSWORD
depends_on:
- components-db
- components-api
components-ui-test:
image: components-ui
build:
context: components-ui/.
dockerfile: Dockerfile.dev
command: yarn test
environment:
- NODE_ENV=development
volumes:
- "./components-ui/app:/usr/src/app"
- "/usr/src/app/node_modules"
components-dbutils:
image: gitlab-registry.internal.sanger.ac.uk/tol/tol-core/dbutils:1.0.4
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_HOST
- POSTGRES_PORT
- BACKUP_S3_ACCESS_KEY
- BACKUP_S3_SECRET_KEY
- BACKUP_S3_URI
- BACKUP_S3_BUCKET
- BACKUP_S3_SECURE
- RESTORE_FILE_PREFIX
- FLASK_ENV
- BACKUP_SCHEDULE
components-alembic:
image: components-api
container_name: components-alembic
restart: always
environment:
- DB_URI
working_dir: /migrations
volumes:
- ./components-api/migrations/alembic/versions:/migrations/alembic/versions
- "../tol-sdk:/packages/tol-sdk:rw"