-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (124 loc) · 3.29 KB
/
docker-compose.yml
File metadata and controls
133 lines (124 loc) · 3.29 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# 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:14
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_PORTAL_API_DATA_PATH=${PORTAL_API_DATA_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.10
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"
components-playwright-test:
# build: components-ui/app/src/test/playwright
build:
context: ./components-ui/app/src/test/playwright
dockerfile: Dockerfile
volumes:
- "./components-ui/app/src/test/playwright:/usr/src/app:rw"
- "/usr/src/app/node_modules"
environment:
- PLAYWRIGHT_URL=https://host.docker.internal:3011
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_HOST
- POSTGRES_PORT
- HEADLESS=true
- DOCKER_COMPOSE=1