diff --git a/docker-compose.deploy.yml b/docker-compose.deploy.yml new file mode 100644 index 0000000000000000000000000000000000000000..97f1648c56941d0cd1056e4a9d446daa7233cc21 --- /dev/null +++ b/docker-compose.deploy.yml @@ -0,0 +1,52 @@ +version: '3.9' + +services: + sg-database: + build: ./neo4j + environment: + - NEO4J_AUTH=neo4j/test + ports: + - "7474:7474" + - "7687:7687" + volumes: + - neo4j-import:/var/lib/neo4j/import + - neo4j-data:/var/lib/neo4j/data + container_name: neo4j + sg-redis: + image: "redis:7-alpine" + ports: + - "6379:6379" + sg-backend: + build: ./sg-backend + environment: + - FRONTEND_URL="http://localhost" + - NEO4J_URI=neo4j://sg-database:7687 + - NEO4J_USER=neo4j + - NEO4J_PASSWORD=test + - WAIT_HOSTS=sg-database:7474 + - WAIT_HOSTS_TIMEOUT=300 + - WAIT_SLEEP_INTERVAL=3 + - WAIT_HOST_CONNECT_TIMEOUT=30 + - REDIS_URL=redis://sg-redis:6379 + volumes: + - ./sg-backend:/code + depends_on: + - sg-database + - sg-redis + ports: + - "8000:8000" + sg-frontend: + build: ./sg-frontend + environment: + - VITE_BACKEND_URL=http://localhost:8000 + volumes: + - ./sg-frontend:/app + - node_modules:/app/node_modules + ports: + - "5173:5173" + depends_on: + - sg-backend +volumes: + neo4j-import: + neo4j-data: + node_modules: \ No newline at end of file