Spaces:
Runtime error
Runtime error
| version: '3' | |
| services: | |
| backend: | |
| build: | |
| context: . | |
| target: backend | |
| ports: | |
| - 5000:5000 | |
| environment: | |
| - DATABASE_URL=postgresql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME} | |
| depends_on: | |
| - postgres | |
| frontend: | |
| image: node:alpine | |
| build: | |
| context: . | |
| target: frontend | |
| ports: | |
| - 3000:3000 | |
| environment: | |
| - HOST=0.0.0.0 | |
| volumes: | |
| - ./web_app/frontend:/app/frontend | |
| - /app/frontend/node_modules | |
| command: npm run dev | |
| depends_on: | |
| - backend | |
| nginx: | |
| image: nginx:1.19-alpine | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/nginx.conf | |
| - ./web_app/frontend/dist:/usr/share/nginx/html | |
| ports: | |
| - 80:80 | |
| depends_on: | |
| - backend | |
| - frontend | |
| postgres: | |
| image: postgres:latest | |
| environment: | |
| - POSTGRES_USER=sxcfvspw | |
| - POSTGRES_PASSWORD=zcPnPJ1IIX7bYVzq4pOakWVLKTzYdYs0 | |
| - POSTGRES_DB=sxcfvspw | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| ports: | |
| - 5432:5432 | |
| volumes: | |
| postgres_data: | |