Automatically deploy pull requests for testing #8
54
docker-compose-branch.yml
Normal file
54
docker-compose-branch.yml
Normal file
|
@ -0,0 +1,54 @@
|
|||
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=https://${VHOST}-oauth2.branch.dsv.su.se/authorize
|
||||
- OAUTH2_TOKEN_URI=http://whisper-api-oauth2:8080/exchange
|
||||
- OAUTH2_USER_INFO_URI=http://whisper-api-oauth2:8080/verify
|
||||
networks:
|
||||
- whisper-network
|
||||
depends_on:
|
||||
- whisper-api-db
|
||||
- whisper-api-oauth2
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${VHOST}.rule=Host(`${VHOST}.branch.dsv.su.se`)"
|
||||
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
|
||||
|
||||
whisper-api-db:
|
||||
container_name: whisper-api-db
|
||||
image: mariadb
|
||||
restart: on-failure
|
||||
networks:
|
||||
- whisper-network
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD=mariadb
|
||||
- MARIADB_DATABASE=whisper_api
|
||||
- MYSQL_ROOT_HOST=%
|
||||
|
||||
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
|
||||
environment:
|
||||
CLIENT_ID: whisper-frontend
|
||||
CLIENT_SECRET: s3cr3t
|
||||
CLIENT_REDIRECT_URI: https://${VHOST}.branch.dsv.su.se/login/oauth2/code/su
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.${VHOST}.rule=Host(`${VHOST}-oauth2.branch.dsv.su.se`)"
|
||||
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
|
||||
|
||||
networks:
|
||||
whisper-network:
|
Loading…
Reference in New Issue
Block a user