24 lines
438 B
YAML
24 lines
438 B
YAML
|
version: '3.1'
|
||
|
|
||
|
services:
|
||
|
metropolis:
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
build:
|
||
|
dockerfile: Dockerfile
|
||
|
context: .
|
||
|
environment:
|
||
|
PG_HOST: postgres
|
||
|
PG_DATABASE: metropolis
|
||
|
PG_USERNAME: metro
|
||
|
PG_PASSWORD: polis
|
||
|
|
||
|
postgres:
|
||
|
image: postgres:13-alpine
|
||
|
environment:
|
||
|
POSTGRES_DB: metropolis
|
||
|
POSTGRES_USER: metro
|
||
|
POSTGRES_PASSWORD: polis
|
||
|
ports:
|
||
|
- 127.0.0.1:5432:5432
|