-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
81 lines (78 loc) · 1.65 KB
/
docker-compose.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3"
services:
s3:
image: "minio/minio"
hostname: "storage"
restart: "no"
environment:
- MINIO_ROOT_USER=s3accesskey
- MINIO_ROOT_PASSWORD=s3secretkey
expose:
- "9000"
- "9001"
ports:
- "9000:9000"
- "9001:9001"
entrypoint: [ "minio", "server", "/data", "--console-address", ":9001" ]
networks:
- local
db:
image: "postgres:13-alpine"
hostname: "db"
restart: "no"
environment:
- POSTGRES_DB=db
- POSTGRES_USER=username
- POSTGRES_PASSWORD=changeme
expose:
- "5432"
ports:
- "5432:5432"
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql:delegated
networks:
- local
app:
build: .
restart: "no"
environment:
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_NAME=db
- DATABASE_USERNAME=username
- DATABASE_PASSWORD=changeme
- S3_ENDPOINT=storage:9000
- S3_REGION=us-east-1
- S3_BUCKET=filebin
- S3_ACCESS_KEY=s3accesskey
- S3_SECRET_KEY=s3secretkey
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=changeme
- METRICS_USERNAME=foo
- METRICS_PASSWORD=bar
- METRICS_AUTH=basic
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- .:/app:delegated
depends_on:
- db
- s3
networks:
- local
entrypoint: [ "./wait-for-s3.sh", "make", "run" ]
#varnish:
# image: "varnish:stable"
# restart: "no"
# expose:
# - "6081"
# ports:
# - "6081:80"
# volumes:
# - ./etc/varnish:/etc/varnish:delegated
# depends_on:
# - app
networks:
local: null