Spaces:
Running
Running
| version: '3.8' | |
| services: | |
| client: | |
| build: | |
| context: ./client | |
| dockerfile: Dockerfile | |
| ports: | |
| - "80:80" | |
| depends_on: | |
| - server | |
| volumes: | |
| - ./client/nginx.conf:/etc/nginx/nginx.conf | |
| server: | |
| build: | |
| context: ./server | |
| dockerfile: Dockerfile | |
| ports: | |
| - "3001:3001" | |
| environment: | |
| - DB_HOST=postgres | |
| - DB_USER=postgres | |
| - DB_PASSWORD=postgres | |
| - DB_NAME=bionexus_hub | |
| - DB_PORT=5432 | |
| depends_on: | |
| - postgres | |
| postgres: | |
| image: postgres:15 | |
| environment: | |
| - POSTGRES_USER=postgres | |
| - POSTGRES_PASSWORD=postgres | |
| - POSTGRES_DB=bionexus_hub | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| postgres_data: |