forked from neos/Neos.NeosIo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (111 loc) · 3.99 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '2.1'
volumes:
application: ~
services:
webserver:
image: ${BEACH_DEV_WEBSERVER_IMAGE}
container_name: ${BEACH_DEV_PROJECT_NAME}_webserver_1
ports:
- "${BEACH_DEV_WEBSERVER_PORT}:80"
volumes:
- application:/application
depends_on:
database:
condition: service_healthy
links:
- php
environment:
- BEACH_PHP_FPM_HOST=php
- BEACH_FLOW_BASE_CONTEXT=${BEACH_FLOW_BASE_CONTEXT}
- BEACH_DATABASE_HOST=${BEACH_DATABASE_HOST}
- BEACH_DATABASE_PORT=${BEACH_DATABASE_PORT}
- BEACH_DATABASE_NAME=${BEACH_DATABASE_NAME}
- BEACH_DATABASE_USERNAME=${BEACH_DATABASE_USERNAME}
- BEACH_DATABASE_PASSWORD=${BEACH_DATABASE_PASSWORD}
php:
image: ${BEACH_DEV_PHP_IMAGE}
container_name: ${BEACH_DEV_PROJECT_NAME}_php_1
links:
- database
volumes:
- application:/application
depends_on:
database:
condition: service_healthy
environment:
- BEACH_FLOW_BASE_CONTEXT=${BEACH_FLOW_BASE_CONTEXT}
- BEACH_SITE_URI_SCHEME=${BEACH_SITE_URI_SCHEME}
- BEACH_SITE_PRIMARY_DOMAIN=${BEACH_SITE_PRIMARY_DOMAIN}
- BEACH_SITE_BASE_URI=${BEACH_SITE_BASE_URI}
- BEACH_DATABASE_HOST=${BEACH_DATABASE_HOST}
- BEACH_DATABASE_PORT=${BEACH_DATABASE_PORT}
- BEACH_DATABASE_NAME=${BEACH_DATABASE_NAME}
- BEACH_DATABASE_USERNAME=${BEACH_DATABASE_USERNAME}
- BEACH_DATABASE_PASSWORD=${BEACH_DATABASE_PASSWORD}
- BEACH_PHP_FPM_ENABLE=true
- BEACH_PHP_MEMORY_LIMIT=750M
- BEACH_ELASTICSEARCH_HOSTNAME=${BEACH_ELASTICSEARCH_HOSTNAME}
- BEACH_ELASTICSEARCH_PORT=${BEACH_ELASTICSEARCH_PORT}
- BEACH_ELASTICSEARCH_INDEX_NAME=${BEACH_ELASTICSEARCH_INDEX_NAME}
- CROWD_API_USERNAME=${CROWD_API_USERNAME}
- CROWD_API_PASSWORD=${CROWD_API_PASSWORD}
sidecar:
image: ${BEACH_DEV_PHP_IMAGE}
container_name: ${BEACH_DEV_PROJECT_NAME}_sidecar_1
links:
- database
ports:
- "${BEACH_DEV_SSH_PORT}:22"
volumes:
- application:/application
- ./.Docker/secrets:/secrets
depends_on:
database:
condition: service_healthy
environment:
- BEACH_SIDECAR_ENABLE=true
- BEACH_REMOTE_ENABLE=true
- BEACH_FLOW_BASE_CONTEXT=${BEACH_FLOW_BASE_CONTEXT}
- BEACH_SITE_URI_SCHEME=${BEACH_SITE_URI_SCHEME}
- BEACH_SITE_PRIMARY_DOMAIN=${BEACH_SITE_PRIMARY_DOMAIN}
- BEACH_SITE_BASE_URI=${BEACH_SITE_BASE_URI}
- BEACH_DATABASE_HOST=${BEACH_DATABASE_HOST}
- BEACH_DATABASE_PORT=${BEACH_DATABASE_PORT}
- BEACH_DATABASE_NAME=${BEACH_DATABASE_NAME}
- BEACH_DATABASE_USERNAME=${BEACH_DATABASE_USERNAME}
- BEACH_DATABASE_PASSWORD=${BEACH_DATABASE_PASSWORD}
- BEACH_REMOTE_AUTHORIZED_KEYS=${BEACH_REMOTE_AUTHORIZED_KEYS}
- BEACH_PHP_MEMORY_LIMIT=750M
- BEACH_ELASTICSEARCH_HOSTNAME=${BEACH_ELASTICSEARCH_HOSTNAME}
- BEACH_ELASTICSEARCH_PORT=${BEACH_ELASTICSEARCH_PORT}
- BEACH_ELASTICSEARCH_INDEX_NAME=${BEACH_ELASTICSEARCH_INDEX_NAME}
- CROWD_API_USERNAME=${CROWD_API_USERNAME}
- CROWD_API_PASSWORD=${CROWD_API_PASSWORD}
database:
image: mariadb:10.1
container_name: ${BEACH_DEV_PROJECT_NAME}_database_1
volumes:
- ./.Docker/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${BEACH_DATABASE_PASSWORD}
- MYSQL_DATABASE=${BEACH_DATABASE_NAME}
ports:
- ${BEACH_DEV_DATABASE_PORT}:${BEACH_DATABASE_PORT}
command: 'mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci'
healthcheck:
test: "echo 'SELECT 0;' | mysql -u ${BEACH_DATABASE_USERNAME} --password=${BEACH_DATABASE_PASSWORD}"
interval: 1s
timeout: 5s
retries: 120
elasticsearch:
image: elasticsearch:1.7.5
container_name: ${BEACH_DEV_PROJECT_NAME}_elasticsearch_1
volumes:
- ./.Docker/elasticsearch:/data
ports:
- ${BEACH_DEV_ELASTICSEARCH_PORT}:9200
# healthcheck:
# test: "..."
# interval: 1s
# timeout: 5s
# retries: 120