CLI based Google OAuth2 application example.
Servlet based Google OAuth2 application with.
Used docker plugin
Please review User manuals
To start Oauth2 application in container:
-
check in you have installed docker-compose(docker-compose version), if to install it
-
in module
auth-server
execute mvn clean install - it will create docker image -
in module
spring
execute mvn clean install - it will create docker image -
check if images are created (
docker images
-> there should be(by default): docker-com.lohika.jclub.oauth2-spring, docker-com.lohika.jclub.oauth2-auth-server) -
START application run docker-compose up from directory compose
-
(OPTIONAL) also you can run it from
oauth2
execute mvn clean install, but there are some restrictions: Current docker plugin support '2' version of docker-compose, networks don't work properly, maybe others; -
START application run docker-compose down from directory compose