-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1.42 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
version: '3.8'
services:
database:
image: postgres
environment:
POSTGRES_PASSWORD: openkoda
POSTGRES_DB: openkoda
expose:
- 5432
volumes:
- db:/var/lib/postgresql/data
database_ui:
image: adminer
expose:
- 8080
depends_on:
- database
openkoda:
tty: true
build:
context: .
dockerfile: config/openkoda/Dockerfile
command: java -Dloader.path=/BOOT-INF/classes -Dsecure.cookie=false -jar openkoda/build/openkoda-1.4.1.jar --spring.profiles.active=openkoda --server.port=8030 --spring.datasource.username=postgres --spring.datasource.password=openkoda --spring.datasource.url=jdbc:postgresql://database:5432/openkoda
expose:
- 8030
depends_on:
- database
nginx_reverse_proxy:
image: nginx
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d:ro
- ./config/nginx/ssl/:/etc/nginx/ssl/:ro
ports:
- "80:80"
- "443:443"
depends_on:
- database_ui
- openkoda
cert_generator:
build:
dockerfile: ./config/cert_generator/Dockerfile
command: openssl req -x509 -newkey rsa:4096 -days 365 -nodes -subj "/C=FI/ST=Helsinki/L=Helsinki/O=Andy/OU=IT Department/CN=demo.test" -addext "subjectAltName=DNS:demo.test,DNS:*.demo.test" -keyout /etc/nginx/ssl/selfsigned.key -out /etc/nginx/ssl/selfsigned.crt
volumes:
- ./config/nginx/ssl/:/etc/nginx/ssl/:rw
volumes:
db:
driver: local