forked from lesspass/lesspass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
49 lines (49 loc) · 1007 Bytes
/
docker-compose.prod.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
version: '2'
services:
db:
restart: always
image: postgres:9.5
volumes:
- postgresql:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
backend:
restart: always
image: lesspass/backend:latest
expose:
- '8000'
volumes:
- www:/backend/www
links:
- db
env_file:
- .env
environment:
DATABASE_ENGINE: 'django.db.backends.postgresql'
DATABASE_NAME: 'postgres'
DATABASE_USER: 'postgres'
DATABASE_HOST: 'db'
DATABASE_PORT: '5432'
frontend:
restart: always
image: lesspass/frontend:latest
nginx:
restart: always
image: lesspass/nginx:letsencrypt
ports:
- '80:80'
- '443:443'
volumes_from:
- backend
volumes:
- ./letsencrypt:/etc/letsencrypt
links:
- backend
- frontend
environment:
- DOMAIN=${DOMAIN}
volumes:
postgresql:
www: