-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yaml
55 lines (51 loc) · 1.32 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
version: "3.8"
services:
postgres:
image: postgres
restart: always
volumes:
- embedg-local-postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: embedg
PGUSER: postgres
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD", "pg_isready"]
interval: 3s
timeout: 30s
retries: 3
minio:
image: quay.io/minio/minio
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: embedg
MINIO_ROOT_PASSWORD: 1234567890
volumes:
- embedg-local-minio:/data
embedg:
image: merlintor/embed-generator:latest
restart: always
ports:
- "8080:8080"
environment:
- EMBEDG_API__HOST=0.0.0.0
- EMBEDG_API__INSECURE_COOKIES=true
- EMBEDG_POSTGRES__HOST=postgres
- EMBEDG_POSTGRES__USER=postgres
- EMBEDG_POSTGRES__DB=embedg
- EMBEDG_S3__ENDPOINT=minio:9000
- EMBEDG_API__PUBLIC_URL=http://localhost:8080/api
- EMBEDG_APP__PUBLIC_URL=http://localhost:8080/app
volumes:
- ./config.yaml:/root/config.yaml
depends_on:
postgres:
condition: service_healthy
volumes:
embedg-local-postgres:
embedg-local-minio: