-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
92 lines (86 loc) · 2.13 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
services:
mariadb:
image: mariadb:${MARIADB_VERSION}
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
- MARIADB_DATABASE=${DB_DATABASE}
- MARIADB_USER=${DB_USERNAME}
- MARIADB_PASSWORD=${DB_PASSWORD}
- TZ=${TZ}
volumes:
- ./docker/mariadb:/var/lib/mysql
restart: unless-stopped
nginx:
image: nginx:${NGINX_VERSION}
environment:
- NGINX_PORT=${NGINX_PORT}
- NODE_PORT=${NODE_PORT}
- TZ=${TZ}
volumes:
- ./docker/nginx/production:/etc/nginx/templates
- ./frontend:/vesp/frontend
- ./www:/vesp/www
ports:
- ${NGINX_HOST}:${NGINX_PORT}:80
restart: unless-stopped
depends_on:
- php-fpm
- mariadb
php-fpm:
image: bezumkin/orbita-php
volumes:
- ./.env:/vesp/.env
- ./core:/vesp/core
- ./www:/vesp/www
- ./upload:/vesp/upload
- ./tmp:/vesp/tmp
- ./log:/vesp/log
- ./frontend:/vesp/frontend
cap_add:
- SYS_PTRACE
depends_on:
- mariadb
environment:
- TZ=${TZ}
- COMPOSER_ALLOW_SUPERUSER=1
restart: unless-stopped
working_dir: /vesp/core
command: sh -c 'composer install --no-dev && composer db:migrate && cron && php-fpm'
node:
image: node:${NODE_VERSION}
volumes:
- ./.env:/vesp/.env
- ./frontend:/vesp/frontend
depends_on:
- nginx
environment:
- TZ=${TZ}
network_mode: 'service:nginx'
restart: unless-stopped
working_dir: /vesp/frontend
command: sh -c 'rm -rf /tmp/* && npm i --omit=dev && npm run build && node ./.output/server/index.mjs'
redis:
image: redis:${REDIS_VERSION}
volumes:
- ./docker/redis:/data
environment:
- TZ=${TZ}
restart: unless-stopped
command: redis-server --save 60 1 --loglevel nothing
manticore:
image: manticoresearch/manticore
environment:
- TZ=${TZ}
volumes:
- ./docker/manticore:/var/lib/manticore/
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
depends_on:
- mariadb
restart: unless-stopped