forked from kartverket/kartverket.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1.55 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
version: '3.8'
services:
postgres:
image: postgres:15
container_name: backstage-postgres
environment:
POSTGRES_USER: admin # Admin user for PostgreSQL
POSTGRES_PASSWORD: adminpw # Admin user password
POSTGRES_DB: backstage # Database name for Backstage
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432" # Expose PostgreSQL on port 5432
networks:
- backstage-network
backstage:
build:
context: .
dockerfile: packages/backend/Dockerfile
environment:
APP_CONFIG_app_baseUrl: 'http://localhost:7007'
APP_CONFIG_backend_baseUrl: 'http://localhost:7007'
APP_CONFIG_backend_database_client: 'pg'
APP_CONFIG_backend_database_connection_host: 'postgres'
APP_CONFIG_backend_database_connection_user: 'admin'
APP_CONFIG_backend_database_connection_password: 'adminpw'
APP_CONFIG_backend_database_connection_database: 'backstage'
APP_CONFIG_backend_cors_origin: 'http://localhost:3000'
ENTRA_ID_SP_APP_ID: 432
ENTRA_ID_SP_CLIENT_SECRET: 432
ENTRA_WEB_APP_ID: 432
ENTRA_WEB_CLIENT_SECRET: 432
ENTRA_TENANT_ID: 432
GOOGLE_OAUTH_CLIENT_ID: 432
GOOGLE_OAUTH_CLIENT_SECRET: 432
ports:
- "7007:7007" # Expose Backstage on port 7007
depends_on:
- postgres
networks:
- backstage-network
volumes:
- ./github-secret.yaml:/app/github-secrets/github-app-backstage-skip-credentials.yaml
volumes:
postgres_data: {}
networks:
backstage-network:
driver: bridge