-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
54 lines (46 loc) · 1.54 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
version: '2.4'
services:
api:
image: einstore/einstore-base:2.0
volumes:
- .:/app
working_dir: /app
restart: on-failure
environment:
APICORE_STORAGE_LOCAL_ROOT: /home/einstore
APICORE_SERVER_NAME: "Einstore"
APICORE_SERVER_PATH_PREFIX: ~
APICORE_SERVER_MAX_UPLOAD_FILESIZE: 800
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_JWT_SECRET: secret
command: ["swift", "run", "EinstoreRun", "serve", "--hostname", "0.0.0.0", "--port", "8080"]
postgres:
image: postgres:11-alpine
restart: always
environment:
POSTGRES_USER: einstore
POSTGRES_PASSWORD: einstore
POSTGRES_DB: einstore
healthcheck:
test: ["CMD-SHELL", "pg_isready -U einstore"]
interval: 5s
timeout: 5s
retries: 5
adminer:
image: michalhosna/adminer:master
environment:
ADMINER_DB: einstore
ADMINER_DRIVER: pgsql
ADMINER_PASSWORD: einstore
ADMINER_SERVER: postgres
ADMINER_USERNAME: einstore
ADMINER_AUTOLOGIN: 1
ADMINER_NAME: EinstoreCore
depends_on:
- postgres