-
Notifications
You must be signed in to change notification settings - Fork 82
/
docker-compose.yaml
31 lines (31 loc) · 1.15 KB
/
docker-compose.yaml
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
version: "3"
services:
utask:
build: .
command: ["/wait-for-it.sh", "db:5432", "--", "/app/utask"]
environment:
DEBUG: 'true'
DEV: 'true'
CONFIGURATION_FROM: 'env:CFG'
CFG_DATABASE: 'postgres://user:pass@db/utask?sslmode=disable'
CFG_UTASK_CFG: '{"admin_usernames":["admin"],"application_name":"µTask"}'
CFG_CALLBACK_CONFIG: '{"base_url": "http://foo.example.com"}'
CFG_BASIC_AUTH: '{"admin":"1234","resolver":"3456","regular":"5678"}'
CFG_GROUPS_AUTH: '{"admins":["admin"],"resolvers":["admin","resolver"]}'
CFG_ENCRYPTION_KEY: '{"identifier":"storage","cipher":"aes-gcm","timestamp":1535627466,"key":"e5f45aef9f072e91f735547be63f3434e6de49695b178e3868b23b0e32269800"}'
ports:
- 8081:8081
volumes:
- "./templates:/app/templates:ro"
- "./scripts:/app/scripts:ro"
- "./functions:/app/functions:ro"
depends_on:
- db
db:
image: postgres:14-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: utask
volumes:
- "./sql:/docker-entrypoint-initdb.d"