-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·95 lines (88 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
executable file
·95 lines (88 loc) · 1.82 KB
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
version: '2'
services:
elasticsearch1:
build: ./elasticsearch/
container_name: elasticsearch1
environment:
- discovery.type=single-node
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- esnet
mysql:
image: mysql:5.7
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=briskly_papers
- MYSQL_USER=briskly_papers
- MYSQL_PASSWORD=briskly_papers
volumes:
- mysql_data:/var/lib/mysql
networks:
- mysqlnet
nginx:
build:
context: ./nginx
container_name: nginx
volumes:
- ./php/src:/var/www
- ./nginx/web/vhost.conf:/etc/nginx/conf.d/default.conf
ports:
- 8085:80
links:
- app
- mysql
- elasticsearch1
networks:
- laravelnet
app:
build:
context: ./php/docker
dockerfile: app.docker
container_name: app
volumes:
- ./php/src:/var/www
networks:
- esnet
- mysqlnet
- laravelnet
depends_on:
- mysql
- elasticsearch1
environment:
- DB_HOST=mysql
- DB_DATABASE=briskly_papers
- DB_USERNAME=briskly_papers
- DB_PASSWORD=briskly_papers
react:
build: ./react/
container_name: react
entrypoint: sh /home/node/entrypoint.sh
working_dir: /home/node
volumes:
- ./react/:/home/node
networks:
- laravelnet
# fpm:
# build: ./socat
# volumes:
# - ./socat/socat.sh:/socat.sh
# command: /socat.sh
# expose:
# - 9000
# networks:
# - laravelnet
volumes:
esdata1:
driver: local
esdata2:
driver: local
mysql_data:
networks:
esnet:
mysqlnet:
laravelnet: