forked from navikt/statusplattform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (51 loc) · 1.37 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'
services:
postgres-db:
image: library/postgres:12
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: navstatus
POSTGRES_USERNAME: postgres
PGTZ: Europe/Oslo
TZ: Europe/Oslo
ports:
# Set to non-standard host port to not crash w/other apps
- "3432:5432"
volumes:
# Persist local test data across container reboots
- pgdata:/var/lib/postgresql/data
javabackend:
build:
context: .
# ports:
# - "3005:3005"
environment:
teamkatalogApiUrl: https://teamkatalog-api.intern.dev.nav.no
swagger-api-key: key
DB_USERNAME: postgres
DB_PORT: 5432
DB_HOST: postgres-db
FRONTEND_LOCATION: 'placeholder'
TENANT: trygdeetaten.no
AZURE_APP_CLIENT_ID: foo
AZURE_APP_CLIENT_SECRET: bar
ENV: dev # TODO will be replaced by scope
depends_on:
- postgres-db
reactfrontend:
build:
context: ../statusplattform-frontend
args:
# Expecting this env var to be present, containing a token that:
# - Is a GitHub PAT (classic)
# - Has SSO access to navikt (or whichever other org your npm packages reside)
NPM_AUTH_TOKEN:
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_BACKENDPATH: http://javabackend:3005
ENV: local
depends_on:
- javabackend
volumes:
pgdata: