services: django-socio-grpc: image: django-socio-grpc tty: true build: context: . dockerfile: Dockerfile target: server environment: - DB_NAME=test - DB_USER=test - DB_PASSWORD=test_pw - DB_HOST=test-database - DB_PORT=5432 command: python test_utils/runserver.py #command: python test_utils/load_tests.py # command: /bin/bash links: - test-database volumes: - .:/opt/code - ./.venv:/opt/code/.venv:delegated - ./test_utils:/opt/code/test_utils # ports: # - "7000:80" networks: django-socio-grpc-network: django-socio-grpc-docs-build: image: django-socio-grpc build: context: . dockerfile: Dockerfile target: docs command: sh -c "cd docs && find . -name '*.rst' | entr -r -n make html" volumes: - .:/opt/code networks: django-socio-grpc-network: django-socio-grpc-docs: image: nginx:alpine volumes: - ./docs/_build/html:/usr/share/nginx/html ports: - "6001:80" networks: django-socio-grpc-network: test-database: image: library/postgres:15.3 ports: - "5432:5432" volumes: - django-socio-grpc-data:/var/lib/postgresql/data environment: POSTGRES_DB: test POSTGRES_USER: test POSTGRES_PASSWORD: test_pw networks: django-socio-grpc-network: networks: django-socio-grpc-network: volumes: django-socio-grpc-data: {}