-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
executable file
·85 lines (84 loc) · 1.86 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
version: '3'
services:
web:
container_name: nginx-app
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- .:/var/www/html/app
- ./server/volumes/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
default:
ipv4_address: 172.10.0.13
redis:
container_name: redis-app
image: redis
restart: always
ports:
- "6379:6379"
networks:
default:
ipv4_address: 172.10.0.6
mysql:
container_name: mysql-app
platform: linux/x86_64
image: mysql:latest
ports:
- "33061:3306"
- "3306:3306"
volumes:
- ./server/volumes/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: dckr_1_xxx54555
MYSQL_DATABASE: api
networks:
default:
ipv4_address: 172.10.0.5
php:
container_name: php-app
build: server/builds/php
image: php:fpm
restart: always
volumes:
- .:/var/www/html/app
- ./server/bashes/laravel.sh:/var/www/html/laravel.sh
mongo:
container_name: mongo-resta
image: mongo
ports:
- "27017:27017"
volumes:
- ./server/volumes/mongo:/data/db
networks:
default:
ipv4_address: 172.10.0.7
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
volumes:
- ./server/volumes/elasticsearch/data:/usr/share/elasticsearch/data
container_name: es01
environment:
- node.name=es01
- cluster.initial_master_nodes=es01
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- '9200:9200'
- '9300:9300'
networks:
default:
ipv4_address: 172.10.0.10
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.10.0.0/24