version: '2' services: db: build: context: ./_dockerfiles/db dockerfile: Dockerfile hostname: db environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=postgres ports: - "5436:5432" elasticsearch: image: elasticsearch:7.3.1 volumes: - gm-esdata:/usr/share/elasticsearch/data hostname: elasticsearch ports: - 9200:9200 - 9300:9300 environment: - "ES_JAVA_OPTS=-Xms512m -Xmx512m" - discovery.type=single-node - xpack.security.enabled=false # App: G&M gm_app: build: . command: python manage.py runserver 0.0.0.0:8000 environment: - SETTINGS_CONFIGURATION=local - DB_HOSTNAME=db - DB_PORT=5432 - DB_NAME=postgres - DB_USERNAME=postgres - DB_PASSWORD=postgres depends_on: - db - elasticsearch ports: - "8000:8000"