docker example

This commit is contained in:
subcrip 2024-04-02 11:17:45 +08:00
parent 7ecba7528f
commit 4cf5e64fed
Signed by: subcrip
SSH Key Fingerprint: SHA256:dFPFi68d8C87YkFkEBU4TkcrYRySWpekRR1hbnDWUCw
2 changed files with 22 additions and 0 deletions

View File

@ -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

2
example/app/init.sql Normal file
View File

@ -0,0 +1,2 @@
create database myoauth;