diff --git a/example/app/docker-compose.yml b/example/app/docker-compose.yml new file mode 100644 index 0000000..1f3a38f --- /dev/null +++ b/example/app/docker-compose.yml @@ -0,0 +1,20 @@ +name: myoauth +services: + myoauth_core: + image: arielherself/myoauth + container_name: myoauth_core + environment: + POSTGRES_HOST: postgres + POSTGRES_PASSWORD: postgres + depends_on: + - myoauth_db + links: + - "myoauth_db:postgres" + myoauth_db: + image: postgres:latest + container_name: myoauth_db + volumes: + - ./init.sql:/docker-entrypoint-initdb.d/db.sql + environment: + POSTGRES_PASSWORD: postgres + diff --git a/example/app/init.sql b/example/app/init.sql new file mode 100644 index 0000000..4938b48 --- /dev/null +++ b/example/app/init.sql @@ -0,0 +1,2 @@ +create database myoauth; +