"update service port configuration and docker setup"

This commit is contained in:
louiscklaw
2025-06-11 12:37:22 +08:00
parent cc4d035f97
commit f487427b2c
4 changed files with 50 additions and 17 deletions

15
03_source/docker/99_prod.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -ex
# -f docker-compose.db.yml
DOCKER_COMPOSE_FILES=" -f docker-compose.yml"
# docker compose $DOCKER_COMPOSE_FILES build
docker compose $DOCKER_COMPOSE_FILES up -d
# cd ../api_server
# yarn docker:dev
# cd ..
# docker compose $DOCKER_COMPOSE_FILES logs -f

View File

@@ -1,9 +1,14 @@
services:
frontend:
command: "sleep infinity"
command: 'sleep infinity'
mobile:
command: "sleep infinity"
command: 'sleep infinity'
cms_backend:
command: "sleep infinity"
command: 'sleep infinity'
postgres:
# container_name: postgres
ports:
- '5432:5432'

View File

@@ -8,22 +8,22 @@ services:
build: ../frontend
# user: 1000:1000
ports:
- 8080:8080
- 10001:8080
volumes:
- ../frontend:/app
working_dir: "/app"
command: "yarn dev"
working_dir: '/app'
command: './dev.sh'
mobile:
image: 192.168.10.61:5000/hksingleparty_mobile
build: ../mobile
# user: 1000:1000
ports:
- 8081:3000
- 10004:3000
volumes:
- ../mobile:/app
working_dir: "/app"
command: "npm run dev"
working_dir: '/app'
command: './dev.sh'
cms_backend:
image: 192.168.10.61:5000/demo_minimal_kit_backend
@@ -32,22 +32,19 @@ services:
env_file:
- .env
ports:
- 7272:7272
- 5555:5555
- 10002:7272
- 10003:5555
volumes:
- ../cms_backend:/app
working_dir: "/app"
command: "yarn dev"
working_dir: '/app'
command: './dev.sh'
postgres:
container_name: postgres
image: postgres:14.1-alpine
restart: unless-stopped
env_file:
- .env
expose:
- "5432"
ports:
- "5432:5432"
- '5432'
volumes:
- db:/var/lib/postgresql/data