fix(docker): stabilize compose startup across prod and dev stacks
This commit is contained in:
@@ -4,7 +4,6 @@ services:
|
|||||||
context: ./frontend/
|
context: ./frontend/
|
||||||
target: builder
|
target: builder
|
||||||
# image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
# image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||||
container_name: voyage-frontend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: root
|
user: root
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@@ -17,12 +16,12 @@ services:
|
|||||||
- server
|
- server
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend:/app
|
||||||
|
- web_node_modules:/app/node_modules
|
||||||
- bun_cache:/bun-cache
|
- 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:
|
db:
|
||||||
image: postgis/postgis:16-3.5
|
image: postgis/postgis:16-3.5
|
||||||
container_name: voyage-db
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
@@ -31,7 +30,6 @@ services:
|
|||||||
server:
|
server:
|
||||||
build: ./backend/
|
build: ./backend/
|
||||||
# image: ghcr.io/alex-wiesner/voyage-backend:latest
|
# image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||||
container_name: voyage-backend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
entrypoint: []
|
entrypoint: []
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@@ -60,3 +58,4 @@ volumes:
|
|||||||
postgres_data:
|
postgres_data:
|
||||||
voyage_media:
|
voyage_media:
|
||||||
bun_cache:
|
bun_cache:
|
||||||
|
web_node_modules:
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ services:
|
|||||||
web:
|
web:
|
||||||
#build: ./frontend/
|
#build: ./frontend/
|
||||||
image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
image: ghcr.io/alex-wiesner/voyage-frontend:latest
|
||||||
container_name: voyage-frontend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
@@ -12,7 +11,6 @@ services:
|
|||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgis/postgis:16-3.5
|
image: postgis/postgis:16-3.5
|
||||||
container_name: voyage-db
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
@@ -21,7 +19,6 @@ services:
|
|||||||
server:
|
server:
|
||||||
#build: ./backend/
|
#build: ./backend/
|
||||||
image: ghcr.io/alex-wiesner/voyage-backend:latest
|
image: ghcr.io/alex-wiesner/voyage-backend:latest
|
||||||
container_name: voyage-backend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user