Skip to content

Commit

Permalink
Create docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 29, 2024
1 parent 453a8ff commit 9bd217b
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '3'

services:
pi-network:
build: .
ports:
- "8080:8080"
environment:
- PI_NETWORK_PORT=8080
- PI_NETWORK_DB_HOST=db
- PI_NETWORK_DB_PORT=5432
- PI_NETWORK_DB_USER=pi_network
- PI_NETWORK_DB_PASSWORD=pi_network_password
depends_on:
- db
restart: always

db:
image: postgres:12
environment:
- POSTGRES_USER=pi_network
- POSTGRES_PASSWORD=pi_network_password
- POSTGRES_DB=pi_network
volumes:
- db-data:/var/lib/postgresql/data
restart: always

volumes:
db-data:

0 comments on commit 9bd217b

Please sign in to comment.