Skip to content
Snippets Groups Projects
docker-compose.yml 1.16 KiB
Newer Older
version: "3"

networks:
  app-tier:
    driver: bridge

services:
  postgresql:
    container_name: shellvalier-postgresql
    image: postgres:14.2
    environment:
      POSTGRES_USER: "shellvalier"
      POSTGRES_DB: "shellvalier"
      POSTGRES_PASSWORD: "shellvalier"
      POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
    networks:
      - app-tier
    volumes:
      - ${DATABASE_DIR}:/var/lib/postgresql/data
    container_name: shellvalier-backend
    image: shellvalier-developer:latest
    build:
      context: .
      dockerfile: Dockerfile
    depends_on:
      - postgresql
    networks:
      - app-tier
    env_file: .environment-dev
    volumes:
      - .:/app
    ports:
dcz's avatar
dcz committed
    extra_hosts:
      walentygroupies.ipipan.waw.pl: 213.135.36.247
      zimbra.ipipan.waw.pl: 213.135.36.155
dcz2's avatar
dcz2 committed

  frontend:
    container_name: shellvalier-frontend
    image: shellvalier-frontend-developer:latest
    build:
      context: .
      dockerfile: Dockerfile-frontend
dcz2's avatar
dcz2 committed
    networks:
      - app-tier
    volumes:
      - ./frontend:/src
    ports:
      - "8010:8010"