forked from gemini-hlsw/lucuma-sso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
28 lines (27 loc) · 972 Bytes
/
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
version: '3'
services:
postgres:
image: postgres:11
command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
volumes:
# this is necessary for CI but can cause confusion locally, sorry
- ./modules/service/src/main/resources/db/migration/:/docker-entrypoint-initdb.d/
- ./test-cert/server.crt:/var/lib/postgresql/server.crt
- ./test-cert/server.key:/var/lib/postgresql/server.key
ports:
- 5432:5432
environment:
POSTGRES_USER: jimmy
POSTGRES_PASSWORD: banana
POSTGRES_DB: lucuma-sso
nginx:
image: nginx
volumes:
- ./playground/nginx.conf:/etc/nginx/nginx.conf
- ./playground/site:/usr/share/nginx/html:ro
- ./playground/local.lucuma.xyz.crt:/etc/nginx/local.lucuma.xyz.crt
- ./playground/local.lucuma.xyz.key:/etc/nginx/local.lucuma.xyz.key
ports:
- 8081:80
- 8443:443
- 8444:444