Base structure #2
This commit is contained in:
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: "2"
|
||||
services:
|
||||
app:
|
||||
image: astrogd/white-leopard
|
||||
build: ./
|
||||
depends_on:
|
||||
- database
|
||||
restart: always
|
||||
environment:
|
||||
- TOKEN=$TOKEN
|
||||
- DB_HOST=database:5432
|
||||
- DB_USERNAME=$DB_USERNAME
|
||||
- DB_PASSWORD=$DB_PASSWORD
|
||||
- DB_DATABASE=$DB_DATABASE
|
||||
database:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
- POSTGRES_USER=$DB_USERNAME
|
||||
- POSTGRES_PASSWORD=$DB_PASSWORD
|
||||
- POSTGRES_DB=$DB_DATABASE
|
||||
expose:
|
||||
- 5432
|
Reference in New Issue
Block a user