-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
78 lines (73 loc) · 2.12 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
services:
nginx:
container_name: benchmarks_nginx
build:
context: ./nginx/
depends_on:
- php
- vuejs
- hugo
ports:
- ${NGINX_LISTEN_HTTP_PORT}:80
- ${NGINX_LISTEN_HTTPS_PORT}:443
restart: always
# put HOSTNAME to .env
environment:
- HOSTNAME=${HTTP_HOSTNAME}
- NGINX_ENVSUBST_TEMPLATE_DIR=${NGINX_TEMPLATES_DIR}
volumes:
- ./nginx/templates/:/etc/nginx/templates/:ro
- ./nginx/conf/:/etc/nginx/conf.d/:rw
- ./nginx/ssl/:/etc/letsencrypt/:rw
- ./frontend/:/frontend/:ro
- ./backend/:/backend/:ro
- ./site/public/:/site/:ro
- ./logs/:/var/log/nginx/:rw
php:
container_name: benchmarks_php
image: php:8-fpm
restart: always
volumes:
- ./backend:/backend/:ro
- ./backend/php_memory_limit.ini:/usr/local/etc/php/conf.d/php_memory_limit.ini:ro
vuejs:
depends_on:
- hugo
container_name: benchmarks_vuejs
image: node:10.19.0-slim
volumes:
- ./frontend/:/app/:rw
- ./site/public/:/site/:rw
- .env:/app/.env:ro
command: bash -c "cd /app && npm install && npm run build && cp -r /app/dist/* /site/"
hugo:
container_name: benchmarks_hugo
image: klakegg/hugo:0.68.3-ext
volumes:
- ./site/:/src:rw
environment:
- HUGO_DESTINATION=/src/public
db:
container_name: benchmarks_db
image: manticoresearch/manticore:6.3.8
restart: always
environment:
- EXTRA=1
volumes:
- ./db/data:/var/lib/manticore
# commment out the below if you don't need Manticore to be accessible locally at port 19306, it's safe the other containers will still be able to access it
ports:
- "127.0.0.1:19306:9306"
- "127.0.0.1:19308:9308"
auth:
container_name: benchmarks_auth
build: https://github.com/dtan4/nginx-basic-auth-proxy.git
depends_on:
- db
restart: always
# don't forget to put DB_USERNAME and DB_PASSWORD to .env
environment:
- BASIC_AUTH_USERNAME=${DB_USERNAME}
- BASIC_AUTH_PASSWORD=${DB_PASSWORD}
- PROXY_PASS=http://db:9308
- SERVER_NAME=db.${HTTP_HOSTNAME}