-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (59 loc) · 1.33 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
62
63
64
65
version: "3.9"
services:
filemanager:
build:
dockerfile: Dockerfile
context: .
container_name: filemanager
env_file:
- src/.env
ports:
- "8000:8000"
volumes:
- "./src:/var/www"
- "./docker-data/log/:/var/log"
networks:
- filemanager
depends_on:
- db-mysql
- minio
minio:
image: minio/minio
container_name: minio
ports:
- "9001:9000" # api port - should not be exposed on production
- "9090:9090" # console port
volumes:
- ./docker-data/data/minio/:/data
env_file:
- src/.env
command: server --console-address ":9090" /data
networks:
- filemanager
db-mysql:
image: mysql
container_name: mysql
env_file:
- src/.env
volumes:
- ./docker-data/data/mysql/:/var/lib/mysql/
- ./src/infrastructure/db/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- 3306:3306 # Dont expose ports on production
networks:
- filemanager
rabbitmq:
image: rabbitmq
container_name: rabbitmq
env_file:
- src/.env
ports:
- "5672:5672" # RabbitMQ main port
- "15672:15672" # RabbitMQ management UI
volumes:
- ./docker-data/data/rabbitmq/:/var/lib/rabbitmq
networks:
- filemanager
networks:
filemanager:
driver: bridge