· 6 years ago · Jan 22, 2020, 08:58 AM
1version: '2'
2
3services:
4
5 proxy:
6 image: guysoft/ownphotos-proxy
7 tty: true
8 container_name: ownphotos-proxy
9 restart: always
10 links:
11 - "backend:backend"
12 - "frontend:frontend"
13 ports:
14 - "3000:80"
15
16 ownphotos-db:
17 image: postgres
18 container_name: ownphotos-db
19 restart: always
20 environment:
21 # This db password is internal, you can change it if you want, but also change it in ownphotos-backend container
22 - POSTGRES_PASSWORD=AaAa1234
23 - POSTGRES_DB=ownphotos
24 volumes:
25 - ownphotos-data:/var/lib/postgresql/data
26
27 frontend:
28 image: hooram/ownphotos-frontend:dev
29 container_name: ownphotos-frontend
30 #image: hooram/ownphotos-frontend:dev
31 #build: ../ownphotos-frontend
32 tty: true
33 #volumes:
34 # - ../ownphotos-frontend/src:/usr/src/app/src
35 environment:
36 # This is the path to the backend host public facing. if your website is ownphotos.org then this should be "ownphotos.org".
37 # Default here is assuming you are running on localhost on port 3000 as given in ownphotos-proxy service
38 - BACKEND_HOST=192.168.1.83:3000 # CHANGE ME IF YOU WANT
39 links:
40 - "backend:backend"
41
42 backend:
43 image: hooram/ownphotos:dev
44 # For development uncomment this and comment the image name above
45 #build: .
46 container_name: ownphotos-backend
47 volumes:
48 - /Docker/ownphotos_tmp/OWNPHOTOS/photos:/data # CHANGE ME
49 - /Docker/ownphotos_tmp/OWNPHOTOS/thumbnails:/code/protected_media # CHANGE ME
50 - /Docker/ownphotos_tmp/OWNPHOTOS/logs:/code/logs # CHANGE ME
51 environment:
52 - SECRET_KEY=changeme # CHANGE ME
53 - BACKEND_HOST=backend # DON'T CHANGE ME
54 - ADMIN_EMAIL=myemail@email.com
55 - ADMIN_USERNAME=admin # CHANGE ME
56 - ADMIN_PASSWORD= admin # CHAGNE ME
57 - DEBUG=false
58 - DB_BACKEND=postgresql
59 - DB_NAME=ownphotos
60 - DB_USER=postgres
61 # This db password is internal, you can change it if you want, but also change it in ownphotos-db container
62 - DB_PASS=AaAa1234
63 - DB_HOST=ownphotos-db
64 - DB_PORT=5432
65 - REDIS_HOST=ownphotos-redis
66 - REDIS_PORT=6379
67 - MAPBOX_API_KEY=apikey # CHANGE ME - sign up at mapbox.com for an api key. You need this for reverse geocoding.
68 links:
69 - "ownphotos-db:ownphotos-db"
70 - "ownphotos-redis:ownphotos-redis"
71
72 ownphotos-redis:
73 image: redis
74 container_name: ownphotos-redis
75
76volumes:
77 ownphotos-data:
78 media: