remove demo code
This commit is contained in:
@@ -23,7 +23,8 @@ services:
|
||||
- NODE_ENV=test
|
||||
- PORT=3000
|
||||
- GRIDPILOT_API_PERSISTENCE=inmemory
|
||||
- ALLOW_DEMO_LOGIN=true
|
||||
- GRIDPILOT_API_BOOTSTRAP=true
|
||||
- GRIDPILOT_API_FORCE_RESEED=true
|
||||
- GRIDPILOT_FEATURES_JSON={"sponsors.portal":"enabled","admin.dashboard":"enabled"}
|
||||
ports:
|
||||
- "3101:3000"
|
||||
@@ -50,6 +51,41 @@ services:
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
|
||||
# Website server for integration tests
|
||||
website:
|
||||
image: node:20-alpine
|
||||
working_dir: /app/apps/website
|
||||
environment:
|
||||
- NODE_ENV=test
|
||||
- NEXT_TELEMETRY_DISABLED=1
|
||||
- API_BASE_URL=http://api:3000
|
||||
ports:
|
||||
- "3100:3000"
|
||||
volumes:
|
||||
- ./:/app
|
||||
- /Users/marcmintel/Projects/gridpilot/node_modules:/app/node_modules:ro
|
||||
command: ["sh", "-lc", "echo '[website] Waiting for API...'; npm run dev --workspace=@gridpilot/website"]
|
||||
depends_on:
|
||||
ready:
|
||||
condition: service_completed_successfully
|
||||
api:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- gridpilot-test-network
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"node",
|
||||
"-e",
|
||||
"fetch('http://localhost:3000').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
start_period: 30s
|
||||
|
||||
networks:
|
||||
gridpilot-test-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user