forked from LibrePhotos/librephotos-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
73 lines (67 loc) · 2.04 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 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:
proxy:
tty: true
build:
context: ./proxy
dockerfile: Dockerfile
container_name: proxy
volumes:
- ${scanDirectory}:/data
- ${data}/protected_media:/protected_media
frontend:
tty: true
environment:
- DEBUG=1
- WDS_SOCKET_PORT=0 # needed for webpack-dev-server
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: frontend
volumes:
- ${codedir}/librephotos-frontend:/usr/src/app
backend:
tty: true
stdin_open: true
environment:
- DEBUG=1
build:
context: ./backend
dockerfile: Dockerfile
args:
DEBUG: 1
container_name: backend
volumes:
- ${scanDirectory}:/data
- ${data}/protected_media:/protected_media
- ${data}/logs:/logs
- ${data}/cache:/root/.cache
- ${codedir}/librephotos:/code
- ./vscode/server-extensions:/root/.vscode-server/extensions
- ./vscode/server-insiders-extensions:/root/.vscode-server-insiders/extensions
- ./vscode/settings.json:/code/.vscode/settings.json
- ./backend/entrypoint.sh:/entrypoint.sh
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- ${pgAdminLocation}/pgadmin:/root/.pgadmin
ports:
- "3001:80"
restart: unless-stopped