Skip to content

Commit

Permalink
fix: compose names
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 16, 2024
1 parent ae4e663 commit f220f5b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
18 changes: 0 additions & 18 deletions docker-compose.dev.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions docker-compose.prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: "3.9"

services:
local-db:
image: postgres:15.1-alpine3.17
container_name: johnjud-local-db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: johnjud_db
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- johnjud

file:
container_name: johnjud-file
restart: unless-stopped
build: .
ports:
- 3004:3004
environment:
APP_PORT: 3004
APP_ENV: production
DB_URL: postgres://root:root@johnjud-local-db:5432/johnjud_db
BUCKET_ENDPOINT: BUCKET_ENDPOINT
BUCKET_ACCESS_KEY: BUCKET_ACCESS_KEY
BUCKET_SECRET_KEY: BUCKET_SECRET_KEY
BUCKET_NAME: johnjud-pet-images
BUCKET_USE_SSL: false
networks:
- johnjud

volumes:
postgres:
networks:
johnjud:
26 changes: 2 additions & 24 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,6 @@ services:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- johnjud

file:
container_name: johnjud-file
restart: unless-stopped
build: .
ports:
- 3004:3004
environment:
APP_PORT: 3004
APP_ENV: production
DB_URL: postgres://root:root@johnjud-local-db:5432/johnjud_db
BUCKET_ENDPOINT: BUCKET_ENDPOINT
BUCKET_ACCESS_KEY: BUCKET_ACCESS_KEY
BUCKET_SECRET_KEY: BUCKET_SECRET_KEY
BUCKET_NAME: johnjud-pet-images
BUCKET_USE_SSL: false
networks:
- johnjud


volumes:
postgres:
networks:
johnjud:
postgres:

0 comments on commit f220f5b

Please sign in to comment.