-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (89 loc) · 2.46 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
services:
#PHP Services
#Nginx Service
devbox-webserver:
image: nginx:alpine
container_name: webserver-devbox
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/cert/:/etc/ssl/certs/
networks:
- devbox-network
#MariaDB Service
devbox-db:
image: mariadb:latest
container_name: mariadb-devbox
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: root
SERVICE_TAGS: dev
SERVICE_NAME: mariadb
volumes:
- ./docker/mysql/data/:/var/lib/mysql/
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
- ./docker/mysql/seeds/:/docker-entrypoint-initdb.d
networks:
- devbox-network
#mysql
#my.cnf innodb_data_file_path = ibdata1:10M:autoextend
#command: --default-authentication-plugin=mysql_native_password
#MYSQL_ROOT_PASSWORD: ''
#MYSQL_DATABASE: ''
#MYSQL_USER: ''
#MYSQL_PASSWORD: ''
#MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
devbox-redis:
image: "redis:alpine"
command: redis-server
container_name: redis-devbox
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./docker/redis/redis-data:/var/lib/redis
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- devbox-network
#Sphinx Search service
devbox-sphinx:
image: macbre/sphinxsearch:3.3.1
ports:
- "36307:36307" # bind to local interface only!
volumes:
- ./docker/sphinx/data:/opt/sphinx/index # directory where sphinx will store index data
- ./docker/sphinx/data:/var/data/sphinxsearch
- ./docker/sphinx/sphinx.conf:/opt/sphinx/etc/sphinx.conf # SphinxSE configuration file
- ./docker/sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf # SphinxSE configuration file
mem_limit: 512m # match indexer.value from sphinx.conf
networks:
- devbox-network\
#Minio S3 compatible Storage
devbox-storage:
image: minio/minio
ports:
- "9000:9000" # bind to local interface only!
environment:
MINIO_ACCESS_KEY: ""
MINIO_SECRET_KEY: ""
volumes:
- ./docker/minio/storage:/data
command: server /data
networks:
- devbox-network
#Docker Networks
networks:
devbox-network:
driver: bridge