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 Aug 3, 2024
1 parent 30972fd commit a3f1707
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: "3"

services:
pi-network-api:
build: .
ports:
- "8080:8080"
depends_on:
- pi-network-db
environment:
- DATABASE_URL=postgres://pi_network_admin:P@ssw0rd!@pi-network-db:5432/pi_network_db

pi-network-db:
image: postgres
environment:
- POSTGRES_USER=pi_network_admin
- POSTGRES_PASSWORD=P@ssw0rd!
- POSTGRES_DB=pi_network_db
volumes:
- pi-network-db-data:/var/lib/postgresql/data

pi-network-web:
build: ./web
ports:
- "80:80"
depends_on:
- pi-network-api

volumes:
pi-network-db-data:

0 comments on commit a3f1707

Please sign in to comment.