forked from Einstore/Einstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·67 lines (58 loc) · 1.67 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
58
59
60
61
62
63
64
65
66
67
version: '2.4'
services:
postgres:
image: postgres:11-alpine
environment:
POSTGRES_USER: einstore
POSTGRES_PASSWORD: einstore
POSTGRES_DB: einstore
volumes:
- pgsql-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
adminer:
image: michalhosna/adminer:master
environment:
ADMINER_DRIVER: pgsql
ADMINER_SERVER: postgres
ADMINER_DB: einstore
ADMINER_USERNAME: einstore
ADMINER_PASSWORD: einstore
ADMINER_AUTOLOGIN: 1
ADMINER_NAME: einstore
api:
image: einstore/einstore-core:0.1.1
restart: on-failure
environment:
APICORE_STORAGE_LOCAL_ROOT: /home/einstore
APICORE_SERVER_NAME: "Einstore - Enterprise AppStore"
APICORE_SERVER_PATH_PREFIX: ~
APICORE_SERVER_MAX_UPLOAD_FILESIZE: 50
APICORE_DATABASE_HOST: postgres
APICORE_DATABASE_USER: einstore
APICORE_DATABASE_PASSWORD: einstore
APICORE_DATABASE_DATABASE: einstore
APICORE_DATABASE_PORT: 5432
APICORE_DATABASE_LOGGING: 'false'
APICORE_STORAGE_S3_ENABLED: 'false'
APICORE_STORAGE_S3_BUCKET: ~
APICORE_STORAGE_S3_ACCESS_KEY: ~
APICORE_STORAGE_S3_REGION: ~
APICORE_STORAGE_S3_SECRET_KEY: ~
APICORE_JWT_SECRET: secret
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -q http://localhost:8080/$${APICORE_SERVER_PATH_PREFIX}/info"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
admin:
image: einstore/einstore-admin:0.1.0
volumes:
pgsql-data: ~