forked from atware/scuruto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 961 Bytes
/
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
version: '3'
services:
db:
build:
context: .
dockerfile: Dockerfile-db
volumes:
- sharedocs-db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: sharedocs
POSTGRES_PASSWORD: sharedocs
POSTGRES_DB: sharedocs
POSTGRES_INITDB_ARGS: "-E UTF8 -T template0 --lc-collate=ja_JP.UTF-8 --lc-ctype=ja_JP.UTF-8"
app:
build:
context: .
dockerfile: Dockerfile-app
ports:
- 8080:8080
links:
- db
volumes:
- sharedocs-app-upload:/var/sharedocs/upload
environment:
DATABASE_HOST: db:5432
DATABASE_DBNAME: sharedocs
DATABASE_USER: sharedocs
DATABASE_PASSWORD: sharedocs
SITE_NAME: Sharedocs:local
SITE_TITLE: Sharedocs
LOGIN_PROVIDOR: app
UPLOAD_DESTINATION: local
LOCAL_UPLOAD_BASE_DIR: /var/sharedocs/upload
LOCAL_UPLOAD_BASE_URL: /static/uploads
volumes:
sharedocs-db-data:
sharedocs-app-upload: