-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
77 lines (72 loc) · 1.82 KB
/
docker-compose.yaml
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
version: '3.8'
networks:
ca-network:
driver: bridge
volumes:
cadb-data:
driver: local
caprovidence-media:
driver: local
caelastic-data:
driver: local
services:
caprovidence:
build:
context: .
dockerfile: ./.docker/providence/Dockerfile
container_name: caprovidence
image: caprovidence
volumes:
- ./apps/providence/setup.php:/var/www/html/providence/setup.php
- ./apps/providence/app/conf/local:/var/www/html/providence/app/conf/local
- caprovidence-media:/var/www/html/providence/media
- ./apps/pawtucket/setup.php:/var/www/html/pawtucket/setup.php
- ./apps/pawtucket/app/conf/local:/var/www/html/pawtucket/app/conf/local
ports:
- "8080:80"
depends_on:
- cadb
- caelastic
networks:
- ca-network
cadb:
container_name: cadb
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "ca_user"
MYSQL_PASSWORD: "ca_password"
MYSQL_DATABASE: "ca"
volumes:
- cadb-data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- ca-network
caelastic:
container_name: caelastic
image: elasticsearch:5.6.16
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
# - bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 262144
# hard: 262144
# mem_limit: 1g
# cap_add:
# - IPC_LOCK
volumes:
- caelastic-data:/usr/share/elasticsearch/data
- ./.docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- "9200:9200"
- "9300:9300"
networks:
- ca-network