forked from nais/salsasync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.console.yml
50 lines (47 loc) · 1.32 KB
/
docker-compose.console.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
49
50
version: "3.9"
services:
postgres:
image: postgres:14-alpine
command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]
ports:
- "3002:5432"
environment:
POSTGRES_USER: console
POSTGRES_PASSWORD: console
POSTGRES_DB: console
volumes:
- console-postgres-data:/var/lib/postgresql/data
adminer:
depends_on:
- postgres
image: adminer:latest
restart: always
ports:
- "3003:8080"
environment:
ADMINER_DEFAULT_SERVER: postgres
console:
image: europe-north1-docker.pkg.dev/nais-io/nais/images/console:main
depends_on:
- postgres
volumes:
- $HOME/.config/gcloud/application_default_credentials.json:/application_default_credentials.json
ports:
- "3000:3000"
env_file:
- .console.env
environment:
GOOGLE_APPLICATION_CREDENTIALS: /application_default_credentials.json
CONSOLE_DATABASE_URL: postgres://console:console@postgres:5432/console?sslmode=disable
CONSOLE_LISTEN_ADDRESS: 0.0.0.0:3000
CONSOLE_USERSYNC_ENABLED: true
CONSOLE_STATIC_SERVICE_ACCOUNTS: |
[
{
"name": "nais-1",
"apiKey": "key1",
"roles": ["Team viewer", "User viewer", "Team creator"]
}
]
volumes:
console-postgres-data: