-
Notifications
You must be signed in to change notification settings - Fork 19
/
ci.yml
77 lines (73 loc) · 1.48 KB
/
ci.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
version: "3"
services:
s3:
image: "minio/minio"
hostname: "storage"
restart: "no"
environment:
- MINIO_ACCESS_KEY=s3accesskey
- MINIO_SECRET_KEY=s3secretkey
expose:
- "9000"
ports:
- "9000:9000"
entrypoint: ["minio", "server", "/data"]
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
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- .:/app:delegated
depends_on:
- db
- s3
networks:
- local
entrypoint: [ "make" ]
#varnish:
# image: "varnish:stable"
# restart: "no"
# expose:
# - "6081"
# ports:
# - "6081:80"
# volumes:
# - ./etc/varnish:/etc/varnish:delegated
# depends_on:
# - app
networks:
local: null