-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
79 lines (79 loc) · 2.36 KB
/
docker-compose.yaml
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
services:
postgres:
extends:
file: docker-compose.common.yaml
service: postgres
environment:
- POSTGRES_DB=devdb
ports:
- "5432:5432"
api:
extends:
file: docker-compose.common.yaml
service: api
image: common-app:dev
build:
context: .
target: development
environment:
- DATABASE_URL=postgresql://postgres:password@postgres:5432/devdb
- 'AUTH0_API_CONFIG={"domain":"${AUTH0_DOMAIN}", "clientId": "${AUTH0_CLIENT_ID}", "clientSecret": "${AUTH0_CLIENT_SECRET}"}'
- 'AUTH0_EXPRESS_CONFIG={"audience":"${AUTH0_AUDIENCE}", "issuerBaseURL": "${AUTH0_ISSUER}"}'
- PORT=3000
- SENTRY_DSN
- UPLOAD_BUCKET=capp-dev-api-uploads
- WEB_URL=https://head.common-app-frontend.pages.dev
- AWS_REGION=us-east-1
- APP_ENV=dev
- LIGHTCAST_CLIENT_SECRET=${LIGHTCAST_CLIENT_SECRET}
- LIGHTCAST_CLIENT_ID=${LIGHTCAST_CLIENT_ID}
ports:
- "3000:3000"
command: "pnpm debug"
depends_on:
- postgres
prisma-studio:
container_name: prisma-studio
environment:
- DATABASE_URL=postgresql://postgres:password@postgres:5432/devdb
ports:
- "5555:5555"
build:
context: .
dockerfile: db/prisma/Dockerfile
volumes:
- ./db/prisma:/app/prisma
profiles:
- tools
depends_on:
- postgres
test-postgres:
extends:
file: docker-compose.common.yaml
service: postgres
environment:
- POSTGRES_DB=testdb
profiles:
- test
test-api:
extends:
file: docker-compose.common.yaml
service: api
image: common-app:test
build:
context: .
target: test
environment:
- PORT=3000
- DATABASE_URL=postgresql://postgres:password@test-postgres:5432/testdb
- 'AUTH0_API_CONFIG={"domain":"${AUTH0_DOMAIN}", "clientId": "${AUTH0_CLIENT_ID}", "clientSecret": "${AUTH0_CLIENT_SECRET}"}'
- 'AUTH0_EXPRESS_CONFIG={"audience":"${AUTH0_AUDIENCE}", "secret":"mysupersecretsecret", "tokenSigningAlg":"HS256", "issuer": "${AUTH0_ISSUER}/"}'
- SENTRY_DSN=https://[email protected]/123
- UPLOAD_BUCKET=capp-dev-api-uploads
- AWS_REGION=us-east-1
- APP_ENV=test
profiles:
- test
depends_on:
- test-postgres
# command: scripts/test-command.sh # TODO: Uncomment when ready to add in testing