Skip to content
Snippets Groups Projects
docker-compose.dev.yml 1.4 KiB
Newer Older
# Run options:
# 1. There are no options - This add additional tools to aid in the development of Libre Photos
#   run cmd: docker-compose up -f docker-compose.yml -f docker-compose.dev.yml -d
# 2. Current added tools:
#    pgadmin User admin@admin pass admin port 3001

# DO NOT EDIT
# The .env file has everything you need to edit.
# Run options:
# 1. Use prebuilt images (preferred method):
#   run cmd: docker-compose up -d
# 2. Build images on your own machine:
#   build cmd: COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build
#   run cmd: docker-compose up -d

version: '3.8'
services:

  frontend:
    tty: true
Matteo Parrucci's avatar
Matteo Parrucci committed
    environment:
    - DEBUG=1
    build:
      context: .
      dockerfile: frontend/Dockerfile
    volumes:
      - ${codedir}/frontend:/usr/src/app
Matteo Parrucci's avatar
Matteo Parrucci committed
    environment:
      - DEBUG=1
    build:
      context: .
      dockerfile: backend/Dockerfile
    volumes:
      - ./backend/entrypoint.sh:/entrypoint.sh
      - ${myPhotos}:/data
      - ${proMedia}:/protected_media
      - ${logLocation}:/logs
      - ${cachedir}:/root/.cache

  pgadmin:
    image: dpage/pgadmin4
    environment:
      PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@admin.com}
      PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
    volumes:
       - $HOME/pgadmin:/root/.pgadmin
    ports:
      - "3001:80"
Matteo Parrucci's avatar
Matteo Parrucci committed
    restart: unless-stopped