docker example
This commit is contained in:
parent
7ecba7528f
commit
4cf5e64fed
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
create database myoauth;
|
||||||
|
|
Loading…
Reference in New Issue