-
Notifications
You must be signed in to change notification settings - Fork 233
/
docker-compose.yml.template
78 lines (71 loc) · 2.4 KB
/
docker-compose.yml.template
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
78
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:
image: hooram/ownphotos-frontend:dev
container_name: ownphotos-frontend
#image: hooram/ownphotos-frontend:dev
#build: ../ownphotos-frontend
tty: true
#volumes:
# - ../ownphotos-frontend/src:/usr/src/app/src
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 # CHANGE ME IF YOU WANT
links:
- "backend:backend"
backend:
image: hooram/ownphotos:dev
# For development uncomment this and comment the image name above
#build: .
container_name: ownphotos-backend
volumes:
- /photos/on/host:/data # CHANGE ME
- /path/to/store/thumbnails/on/host:/code/protected_media # CHANGE ME
- /path/to/store/logs/on/host:/code/logs # CHANGE ME
environment:
- SECRET_KEY=changeme # CHANGE ME
- BACKEND_HOST=backend # DON'T CHANGE ME
- [email protected] # CHANGE ME
- ADMIN_USERNAME=demo # CHANGE ME
- ADMIN_PASSWORD=demo1234 # CHAGNE ME
- DEBUG=false
- 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=apikey # CHANGE ME - sign up at mapbox.com for an api key. You need this for reverse geocoding.
links:
- "ownphotos-db:ownphotos-db"
- "ownphotos-redis:ownphotos-redis"
ownphotos-redis:
image: redis
container_name: ownphotos-redis
volumes:
ownphotos-data:
media: