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:
|
2023-09-16 11:12:43 +02:00
|
|
|
- db
|
2022-11-24 12:12:50 +01:00
|
|
|
restart: unless-stopped
|
2022-11-24 02:12:52 +01:00
|
|
|
environment:
|
|
|
|
- TOKEN=$TOKEN
|
2023-09-16 15:33:16 +02:00
|
|
|
- DB_HOST=db
|
2022-11-24 02:12:52 +01:00
|
|
|
- DB_USERNAME=$DB_USERNAME
|
|
|
|
- DB_PASSWORD=$DB_PASSWORD
|
|
|
|
- DB_DATABASE=$DB_DATABASE
|
2023-09-16 15:33:16 +02:00
|
|
|
- MONITOR_URL=$MONITOR_URL
|
2023-09-16 11:12:43 +02:00
|
|
|
db:
|
2022-11-24 02:12:52 +01:00
|
|
|
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
|