Skip to content

Commit

Permalink
fixing docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
eriysd committed Sep 10, 2024
1 parent 3930d8f commit c810f08
Showing 1 changed file with 13 additions and 33 deletions.
46 changes: 13 additions & 33 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,28 @@
# tried using the below code but throwing copy error
services:
client:
build: ./client
build:
context: .
dockerfile: ./client/Dockerfile
ports:
- 127.0.0.1:3000:3000
env_file:
- .env
networks:
- ai-fasion-mirror

server:
build: ./server
build:
context: .
dockerfile: ./server/Dockerfile
ports:
- 127.0.0.1:8080:8080
# devices:
# - /dev/video0:/dev/video0
env_file:
- .env
networks:
- ai-fasion-mirror

networks:
ai-fasion-mirror:

# tried defining the volume instead of network
# services:
# client:
# build: ./client/.
# ports:
# - 127.0.0.1:3000:3000
# volumes:
# - ./:./

# tried defining build instruction from compose file
# client:
# build: ./client/.
# image: node:20.16.0-alpine
# command: npm ci && npm run dev
# ports:
# - 127.0.0.1:3000:3000
# working_dir: /app

# server:
# build: ./server/.
# environment:
# SERVER_PORT: 8080
# PREAPI_URL: "https://pre.cm/scribe.php"
# CLIENT_BASE_URL: http://localhost:3000
# SERVER_BASE_URL: http://localhost:8080
# volumes:
# - ./:/app
# ports:
# - 127.0.0.1:8080:8080
ai-fasion-mirror:

0 comments on commit c810f08

Please sign in to comment.