-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
48 lines (47 loc) · 1.28 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
version: '3.8'
services:
db:
image: postgres:14.3-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=pass
graphql:
image: node:18.3.0-bullseye-slim
working_dir: /app
ports:
- "3000:3000"
entrypoint: /app/entrypoint.sh
command: ./wait-for-it.sh https-portal3000:443 --timeout=120 --strict -- yarn dev:server
environment:
PRISMA_SCHEMA_PATH: /app/node_modules/.prisma/client/schema.prisma
DATABASE_URL: postgresql://postgres:pass@db:5432/postgres?schema=public
DATA_PROXY_API_KEY: custometoken
MIGRATE: "true"
PORT: "3000"
volumes:
- ./:/app:cached
- node_modules:/app/node_modules
https-portal3000:
image: steveltn/https-portal:1
ports:
- "443:443"
environment:
STAGE: local
DOMAINS: 'https-portal3000 -> http://graphql:3000'
volumes:
- ./ssl-certs:/var/lib/https-portal
test:
image: node:18.3.0-bullseye-slim
working_dir: /app
entrypoint: /app/entrypoint.sh
command: tail -f /dev/null
environment:
DATABASE_URL: prisma://https-portal3000/?api_key=custometoken
NODE_TLS_REJECT_UNAUTHORIZED: "0"
volumes:
- ./:/app:cached
- node_modules_test:/app/node_modules
volumes:
node_modules:
node_modules_test: