forked from hooram/ownphotos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (70 loc) · 2.17 KB
/
docker-compose.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
74
75
76
77
version: '2'
services:
proxy:
image: guysoft/ownphotos-proxy
tty: true
container_name: ownphotos-proxy
restart: always
links:
- "backend:backend"
- "frontend:frontend"
ports:
- "3000:80"
ownphotos-db:
image: postgres
container_name: ownphotos-db
restart: always
environment:
# This db password is internal, you can change it if you want, but also change it in ownphotos-backend container
- POSTGRES_PASSWORD=AaAa1234
- POSTGRES_DB=ownphotos
volumes:
- ownphotos-data:/var/lib/postgresql/data
frontend:
container_name: ownphotos-frontend
image: guysoft/ownphotos-frontend:dev
tty: true
environment:
# This is the path to the backend host public facing. if your website is ownphotos.org then this should be "ownphotos.org".
# Default here is assuming you are running on localhost on port 3000 as given in ownphotos-proxy service
- BACKEND_HOST=localhost:3000
links:
- "backend:backend"
backend:
image: hooram/ownphotos:dev
# For development uncomment this and comment the image name above
#build: .
container_name: ownphotos-backend
volumes:
# Your photos go here
- $HOME/Pictures/:/data
- $HOME/ownphotos_media:/code/protected_media
environment:
- SECRET_KEY=change_meme
# This is backend host from within the service, you dont need to change this
- BACKEND_HOST=backend
- ADMIN_USERNAME=admin
# Change your admin password!
- ADMIN_PASSWORD=admin
- DEBUG=true
- DB_BACKEND=postgresql
- DB_NAME=ownphotos
- DB_USER=postgres
# This db password is internal, you can change it if you want, but also change it in ownphotos-db container
- DB_PASS=AaAa1234
- DB_HOST=ownphotos-db
- DB_PORT=5432
- REDIS_HOST=ownphotos-redis
- REDIS_PORT=6379
- MAPBOX_API_KEY=CHANGE_MEAAAA
- TIME_ZONE=UTC
links:
- "ownphotos-db:ownphotos-db"
- "ownphotos-redis:ownphotos-redis"
ownphotos-redis:
image: redis
container_name: ownphotos-redis
volumes:
ownphotos-data:
media: