-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.09 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
version: "3.8"
services:
postgres:
image: postgres:15.3-alpine
hostname: ${DATABASE_HOST}
container_name: EDU
command: -p ${DATABASE_PORT} # Change the default port
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
env_file:
- ".env"
restart: always
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:7.2.2-alpine
hostname: redis
container_name: redis
restart: always
ports:
- "6379:6379"
minio:
image: minio/minio
hostname: "minio"
volumes:
- minio:/minio_files
env_file:
- ".env"
command: 'minio server /minio_files --console-address ":9001"'
ports:
- "9000:9000"
- "9001:9001"
restart: on-failure
createbuckets:
image: minio/mc
depends_on:
- minio
env_file:
- ".env"
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb --quiet myminio/photos;
/usr/bin/mc anonymous set none myminio/photos;
"
volumes:
postgres:
minio: