Update docker-compose.prod.yml
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:18.3
|
image: postgres:18.3
|
||||||
|
container_name: fb-postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: forgebucket
|
POSTGRES_DB: forgebucket
|
||||||
POSTGRES_USER: forgebucket
|
POSTGRES_USER: forgebucket
|
||||||
POSTGRES_PASSWORD: forgebucket
|
POSTGRES_PASSWORD: forgebucket
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql
|
- fb_pg_data:/var/lib/postgresql
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
|
test: ["CMD-SHELL", "pg_isready -U forgebucket"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
@@ -15,7 +16,8 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
image: thedangle/forgebucket:v0.9.1
|
||||||
|
container_name: fb-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -26,10 +28,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- repo_data:/tmp/forgebucket/repos
|
- fb_repo_data:/tmp/forgebucket/repos
|
||||||
- oci_data:/tmp/forgebucket/oci
|
- fb_oci_data:/tmp/forgebucket/oci
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
fb_pg_data:
|
||||||
repo_data:
|
fb_repo_data:
|
||||||
oci_data:
|
fb_oci_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user