-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
61 lines (57 loc) · 1.47 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
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
services:
web:
build: .
restart: unless-stopped
environment:
# you should change secret key
- SECRET_KEY=example123
- APP_DB_URL="postgresql://whohacks:S3cret@localhost:5432/whohacks"
- OAUTH_OPENID=http://oauth.localhost:8080/issuer1/.well-known/openid-configuration
- OAUTH_CLIENT_SECRET=12345678
- APP_IP_MASK=172.18.0.1
ports:
# use 127.0.0.1:8000:8000
- "8000:8000"
# network_mode: "host"
volumes:
- ./data:/sqlite
- /etc/localtime:/etc/localtime:ro
depends_on:
- postgres
networks:
- default
postgres:
image: postgres:latest
restart: unless-stopped
ports:
- 5432:5432
volumes:
- database_postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=S3cret
- POSTGRES_USER=whohacks
- POSTGRES_DB=whohacks
networks:
- default
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:2.1.8
hostname: oauth.localhost
ports:
- "8080:8080"
# this
# network_mode: "host"
volumes:
- ./tests/resources/config.json:/app/config.json
- ./tests/resources/login.example.html:/app/login/login.example.html
- ./tests/resources/static/:/app/static/
environment:
LOG_LEVEL: "debug"
SERVER_PORT: 8080
# SERVER_HOSTNAME: localhost
JSON_CONFIG_PATH: /app/config.json
networks:
- default
volumes:
database_postgres:
driver: local