59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
services:
|
|
whisper-api:
|
|
container_name: whisper-api
|
|
build:
|
|
context: .
|
|
environment:
|
|
- DBHOST=jdbc:mariadb://whisper-api-db:3306/whisper_api
|
|
- DBUSER=root
|
|
- DBPASS=mariadb
|
|
- OAUTH2_CLIENT_ID=whisper-frontend
|
|
- OAUTH2_CLIENT_SECRET=s3cr3t
|
|
- OAUTH2_AUTH_URI=http://localhost:59751/authorize
|
|
- OAUTH2_TOKEN_URI=http://whisper-api-oauth2:8080/exchange
|
|
- OAUTH2_USER_INFO_URI=http://whisper-api-oauth2:8080/verify
|
|
- JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
|
|
networks:
|
|
- whisper-network
|
|
ports:
|
|
- '8080:8080'
|
|
- '5005:5005'
|
|
depends_on:
|
|
- whisper-api-db
|
|
- whisper-api-oauth2
|
|
|
|
whisper-api-db:
|
|
container_name: whisper-api-db
|
|
image: mariadb
|
|
restart: on-failure
|
|
networks:
|
|
- whisper-network
|
|
ports:
|
|
- '3306:3306'
|
|
environment:
|
|
- MARIADB_ROOT_PASSWORD=mariadb
|
|
- MARIADB_DATABASE=whisper_api
|
|
- MYSQL_ROOT_HOST=%
|
|
volumes:
|
|
- whisper-api-db:/var/lib/mysql
|
|
|
|
whisper-api-oauth2:
|
|
container_name: whisper-api-oauth2
|
|
build:
|
|
context: https://github.com/dsv-su/toker.git
|
|
dockerfile: embedded.Dockerfile
|
|
restart: on-failure
|
|
networks:
|
|
- whisper-network
|
|
ports:
|
|
- '59751:8080'
|
|
environment:
|
|
CLIENT_ID: whisper-frontend
|
|
CLIENT_SECRET: s3cr3t
|
|
CLIENT_REDIRECT_URI: http://localhost:8080/login/oauth2/code/su
|
|
|
|
volumes:
|
|
whisper-api-db:
|
|
|
|
networks:
|
|
whisper-network: |