27 lines
586 B
YAML
27 lines
586 B
YAML
version: "3.9"
|
|
services:
|
|
app:
|
|
image: astrogd/white-leopard:dev
|
|
build: ./
|
|
tty: true
|
|
stdin_open: true
|
|
depends_on:
|
|
- database
|
|
restart: unless-stopped
|
|
environment:
|
|
- TOKEN=$TOKEN
|
|
- DB_HOST=database
|
|
- DB_USERNAME=$DB_USERNAME
|
|
- DB_PASSWORD=$DB_PASSWORD
|
|
- DB_DATABASE=$DB_DATABASE
|
|
database:
|
|
image: postgres:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- POSTGRES_USER=$DB_USERNAME
|
|
- POSTGRES_PASSWORD=$DB_PASSWORD
|
|
- POSTGRES_DB=$DB_DATABASE
|
|
expose:
|
|
- 5432 |