Skip to content

Commit

Permalink
add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Mar 27, 2021
1 parent 46d70bf commit 8e6a2c3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.1'
services:
postgres:
image: postgres:13.1
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: twinte_session_service
ports:
- 5432:5432
app:
build: .
environment:
PG_HOST: postgres
PG_PORT: 5432
PG_DATABASE: twinte_session_service
PG_USER: postgres
PG_PASSWORD: postgres
SESSION_LIFETIME_HOURS: 8760
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/twinte_session_service?schema=public'
ports:
- 50051:50051
depends_on:
- postgres

0 comments on commit 8e6a2c3

Please sign in to comment.