fix(docker): stabilize compose startup across prod and dev stacks
This commit is contained in:
@@ -4,7 +4,6 @@ services:
|
||||
context: ./frontend/
|
||||
target: builder
|
||||
# image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||
container_name: voyage-frontend
|
||||
restart: unless-stopped
|
||||
user: root
|
||||
env_file: .env
|
||||
@@ -17,12 +16,12 @@ services:
|
||||
- server
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- web_node_modules:/app/node_modules
|
||||
- bun_cache:/bun-cache
|
||||
command: sh -c "mkdir -p /bun-cache && chown -R node:node /bun-cache && su node -c 'BUN_INSTALL_CACHE_DIR=/bun-cache bun install --frozen-lockfile && bun run vite dev --host 0.0.0.0 --port 3000 --strictPort'"
|
||||
command: sh -c "mkdir -p /bun-cache /app/node_modules && chown -R node:node /bun-cache /app/node_modules && su node -c 'BUN_INSTALL_CACHE_DIR=/bun-cache bun install --frozen-lockfile && bun run vite dev --host 0.0.0.0 --port 3000 --strictPort'"
|
||||
|
||||
db:
|
||||
image: postgis/postgis:16-3.5
|
||||
container_name: voyage-db
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
@@ -31,7 +30,6 @@ services:
|
||||
server:
|
||||
build: ./backend/
|
||||
# image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||
container_name: voyage-backend
|
||||
restart: unless-stopped
|
||||
entrypoint: []
|
||||
env_file: .env
|
||||
@@ -60,3 +58,4 @@ volumes:
|
||||
postgres_data:
|
||||
voyage_media:
|
||||
bun_cache:
|
||||
web_node_modules:
|
||||
|
||||
@@ -2,7 +2,6 @@ services:
|
||||
web:
|
||||
#build: ./frontend/
|
||||
image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||
container_name: voyage-frontend
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
@@ -12,7 +11,6 @@ services:
|
||||
|
||||
db:
|
||||
image: postgis/postgis:16-3.5
|
||||
container_name: voyage-db
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
@@ -21,7 +19,6 @@ services:
|
||||
server:
|
||||
#build: ./backend/
|
||||
image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||
container_name: voyage-backend
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user