-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
58 lines (56 loc) · 1.31 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
version: "3.7"
services:
nginx:
image: nginx
volumes:
- ./nginx_templates/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
db:
image: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: quay.io/minio/minio:RELEASE.2022-08-08T18-34-09Z
command: server /data --console-address ":9001"
expose:
- "9000"
- "9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
volumes:
- minio_data:/data
backend:
build: .
# command: bash -c "cd migrations; goose postgres "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable" up; cd .."
volumes:
- ./config.yaml:/config.yaml
depends_on:
- db
- minio
environment:
- DB_USER=postgres
- DB_PASS=postgres
ports:
- "8000:8000"
volumes:
postgres_data:
minio_data: