-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.74 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
services:
keydb:
image: eqalpha/keydb:${KEYDB_DOCKER_VERSION}
hostname: keydb
ports:
- "6379:6379"
command: ["keydb-server", "/etc/keydb/keydb.conf", "--server-threads" , "2"]
restart: always
networks:
- skynet
volumes:
- keydb_data:/data
- ./keydb.conf:/etc/keydb/keydb.conf
postgresql:
image: postgres:${POSTGRESQL_DOCKER_VERSION}
hostname: postgresql
ports:
- "5432:5432"
networks:
- skynet
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=sitespeedio
volumes:
- ./server/database/setup/:/docker-entrypoint-initdb.d
- postgres-data:/var/lib/postgresql/data
minio:
image: minio/minio:${MINIO_DOCKER_VERSION}
volumes:
- minio-data:/data
ports:
- "9000:9000"
environment:
- MINIO_ROOT_USER=${MINIO_USER}
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}
command: server /data --console-address ":9001"
networks:
- skynet
mc:
image: minio/mc:${MINIO_MC_DOCKER_VERSION}
depends_on:
- minio
networks:
- skynet
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set sitespeedio http://minio:9000 ${MINIO_USER} ${MINIO_PASSWORD} &&
(/usr/bin/mc mb --region=motown sitespeedio/sitespeedio || echo 'Bucket already exists') &&
/usr/bin/mc ilm rule add --expire-days 30 sitespeedio/sitespeedio &&
/usr/bin/mc anonymous set public sitespeedio/sitespeedio &&
/usr/bin/mc admin config set sitespeedio compression extensions=\".html,.css,.js\" &&
echo 'MinIO and lifecycle policy setup complete.'"
volumes:
postgres-data:
minio-data:
keydb_data:
driver: local
networks:
skynet:
name: skynet