-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.26 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
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "127.0.0.1:80:80"
volumes:
- ./src/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./src/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- api-smtp
api-smtp:
build:
context: src/
dockerfile: docker/Dockerfile
container_name: api-smtp
environment:
- MODULE_NAME=main
- VARIABLE_NAME=app
volumes:
- ./data:/app/data
expose:
- "8000"
maildev:
image: maildev/maildev
container_name: maildev
ports:
- "127.0.0.1:1080:1080"
- "127.0.0.1:1025:1025"
environment:
- MAILDEV_SMTP_PORT=1025
- MAILDEV_WEB_PORT=1080
minio:
image: minio/minio
container_name: minio
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
command: server /data --console-address ":9001"
minio-client:
image: minio/mc
container_name: minio-client
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin &&
/usr/bin/mc mb -p myminio/emails"
depends_on:
- minio
volumes:
minio_data: