-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
57 lines (53 loc) · 1.63 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
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
version: "2.4"
services:
utask:
build: .
container_name: dsrhub_utask
restart: on-failure
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_BASIC_AUTH: '{"admin":"1234","resolver":"3456","regular":"5678"}'
CFG_ENCRYPTION_KEY: '{"identifier":"storage","cipher":"aes-gcm","timestamp":1535627466,"key":"e5f45aef9f072e91f735547be63f3434e6de49695b178e3868b23b0e32269800"}'
ports:
- "8081:8081"
volumes:
- "./templates:/app/templates"
depends_on:
- db
- migrate
migrate:
build: .
container_name: dsrhub_migrate
command: ["/wait-for-it.sh", "db:5432", "--", "sql-migrate", "up", "-env", "postgres"]
environment:
CFG_DATABASE: 'postgres://user:pass@db/utask?sslmode=disable'
restart: on-failure
depends_on:
- db
db:
image: postgres:9.5.3
container_name: dsrhub_db
restart: on-failure
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: utask
openmock:
image: dsrhub/mock
container_name: dsrhub_openmock
restart: on-failure
volumes:
- "./mocks/openmock_templates:/data/templates"
ports:
- "9999:9999"
- "50051:50051"
functional_test:
image: zhouzhuojie/docker-venom
container_name: dsrhub_functional_test
entrypoint: ''
command: sh -c "tail -F /dev/null"