2022-11-24 20:15:36 +01:00
|
|
|
version: "3.9"
|
2022-11-24 02:12:52 +01:00
|
|
|
services:
|
|
|
|
app:
|
2022-11-24 12:29:52 +01:00
|
|
|
image: astrogd/white-leopard:dev
|
2022-11-24 02:12:52 +01:00
|
|
|
build: ./
|
2022-11-24 22:59:23 +01:00
|
|
|
ports:
|
|
|
|
- 80:80
|
2022-11-24 20:15:36 +01:00
|
|
|
tty: true
|
|
|
|
stdin_open: true
|
2022-11-24 02:12:52 +01:00
|
|
|
depends_on:
|
|
|
|
- database
|
2022-11-24 12:12:50 +01:00
|
|
|
restart: unless-stopped
|
2022-11-24 02:12:52 +01:00
|
|
|
environment:
|
|
|
|
- TOKEN=$TOKEN
|
2022-11-24 12:12:50 +01:00
|
|
|
- DB_HOST=database
|
2022-11-24 02:12:52 +01:00
|
|
|
- DB_USERNAME=$DB_USERNAME
|
|
|
|
- DB_PASSWORD=$DB_PASSWORD
|
|
|
|
- DB_DATABASE=$DB_DATABASE
|
|
|
|
database:
|
|
|
|
image: postgres:latest
|
2022-11-24 12:12:50 +01:00
|
|
|
restart: unless-stopped
|
2022-11-24 02:12:52 +01:00
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=$DB_USERNAME
|
|
|
|
- POSTGRES_PASSWORD=$DB_PASSWORD
|
|
|
|
- POSTGRES_DB=$DB_DATABASE
|
|
|
|
expose:
|
|
|
|
- 5432
|