Seperated composse file #38
12
compose-oauth.yaml
Normal file
12
compose-oauth.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
services:
|
||||
oauth2:
|
||||
build:
|
||||
context: https://gitea.dsv.su.se/DMC/oauth2-authorization-server.git#20cd09737d4c57bc1ee8098637cbad1a618bf49e
|
||||
|
||||
ports:
|
||||
- '51337:8080'
|
||||
environment:
|
||||
- CLIENT_ID=seshat
|
||||
- CLIENT_SECRET=n0tS3cr3t
|
||||
- CLIENT_REDIRECT_URI=http://localhost:8181/login/oauth2/code/seshat
|
||||
- CLIENT_SCOPES=openid email profile
|
||||
13
compose.yaml
13
compose.yaml
@ -11,17 +11,8 @@ services:
|
||||
volumes:
|
||||
- mariadb_data:/var/lib/mysql
|
||||
|
||||
oauth2:
|
||||
build:
|
||||
context: https://gitea.dsv.su.se/DMC/oauth2-authorization-server.git#20cd09737d4c57bc1ee8098637cbad1a618bf49e
|
||||
|
||||
ports:
|
||||
- '51337:8080'
|
||||
environment:
|
||||
- CLIENT_ID=seshat
|
||||
- CLIENT_SECRET=n0tS3cr3t
|
||||
- CLIENT_REDIRECT_URI=http://localhost:8181/login/oauth2/code/seshat
|
||||
- CLIENT_SCOPES=openid email profile
|
||||
include:
|
||||
- compose-oauth.yaml
|
||||
|
||||
volumes:
|
||||
mariadb_data:
|
||||
|
||||
@ -17,7 +17,7 @@ class SeshatApplicationTests {
|
||||
private static org.testcontainers.containers.MariaDBContainer<?> dbContainer = new org.testcontainers.containers.MariaDBContainer<>("mariadb:10.11");
|
||||
|
||||
@Container
|
||||
private static ComposeContainer oauth2Container = new ComposeContainer(new File("compose.yaml"));
|
||||
private static ComposeContainer oauth2Container = new ComposeContainer(new File("compose-oauth.yaml"));
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user