Skip to content

Commit

Permalink
chore: add another compose
Browse files Browse the repository at this point in the history
  • Loading branch information
coodos committed Nov 3, 2024
1 parent 7bf3f54 commit 6b8b735
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
context: .
dockerfile: ./docker/dev/Dockerfile.client
ports:
- 51733:5173
- 5173:5173
env_file:
- .env
develop:
Expand All @@ -30,7 +30,7 @@ services:
context: .
dockerfile: ./docker/dev/Dockerfile.server
ports:
- 12923:1209
- 1209:1209
develop:
watch:
- action: sync
Expand All @@ -56,7 +56,7 @@ services:
volumes:
- ~/data/vcv/db:/var/lib/postgresql/data
ports:
- 5433:5432
- 5434:5432

networks:
host-bridge:
Expand Down
63 changes: 63 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
services:
vcv-client:
container_name: vcv-client
networks:
- host-bridge
build:
context: .
dockerfile: ./docker/dev/Dockerfile.client
ports:
- 51733:5173
env_file:
- .env
develop:
watch:
- action: sync
path: ./apps/client
target: /usr/src/app/apps/client
ignore:
- node_modules
- action: rebuild
path: ./apps/client/package.json
restart: unless-stopped
depends_on:
- vcv-server
vcv-server:
networks:
- host-bridge
container_name: vcv-server
build:
context: .
dockerfile: ./docker/dev/Dockerfile.server
ports:
- 12923:1209
develop:
watch:
- action: sync
path: ./apps/server
target: /usr/src/app/apps/server
ignore:
- node_modules
- action: rebuild
path: ./apps/server/package.json
restart: unless-stopped
depends_on:
- vcv-db
env_file:
- .env
vcv-db:
networks:
- host-bridge
container_name: vcv-db
image: postgres:15.4-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD-password}
volumes:
- ~/data/vcv/db:/var/lib/postgresql/data
ports:
- 5433:5432

networks:
host-bridge:
driver: bridge

0 comments on commit 6b8b735

Please sign in to comment.