phase 2 initial test
This commit is contained in:
+3
-15
@@ -1,5 +1,8 @@
|
||||
version: "3.9"
|
||||
|
||||
# Dev: only PostgreSQL runs here. Run the Go server locally with `make dev`.
|
||||
# Production: docker compose -f docker-compose.prod.yml up
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
@@ -18,20 +21,5 @@ services:
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
app:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
env_file: .env
|
||||
environment:
|
||||
DATABASE_URL: postgres://forgebucket:password@postgres:5432/forgebucket?sslmode=disable
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- repo_data:/var/lib/forgebucket/repos
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
repo_data:
|
||||
|
||||
Reference in New Issue
Block a user