-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (42 loc) · 976 Bytes
/
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
# path: docker-compose.yaml
version: "3.8"
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
mailhog:
image: mailhog/mailhog
logging:
driver: "none" # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
minio:
container_name: s3minio
image: minio/minio:latest
ports:
- "${S3_PORT}:9000"
- "9001:9001"
volumes:
- minio_storage:/data
environment:
MINIO_ROOT_USER: ${S3_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${S3_SECRET_KEY}
env_file:
- .env
command: server --address ":9000" --console-address ":9001" /data
# networks:
# - badgr
volumes:
postgres_data:
minio_storage: