-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
49 lines (45 loc) · 987 Bytes
/
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
---
version: '2.3'
services:
# HTTPD Server
httpd:
image: devilbox/nginx-stable:alpine
build:
context: ../../Dockerfiles
dockerfile: Dockerfile.alpine
hostname: httpd
environment:
- NEW_UID=1000
- NEW_GID=1000
- MAIN_VHOST_ENABLE=1
- MAIN_VHOST_SSL_TYPE=both
- MASS_VHOST_ENABLE=1
- MASS_VHOST_BACKEND=file:backend.txt
- MASS_VHOST_TLD_SUFFIX=.loc
- MASS_VHOST_SSL_TYPE=both
ports:
- "8000:80"
- "8443:443"
volumes:
- ./intranet:/var/www/default/htdocs
- ./projects:/shared/httpd
- ./ca:/ca
depends_on:
- node
- php
# NodeJS Server
node:
image: node:19-alpine
hostname: node
command: node /app/app.js
volumes:
- ./projects/node/src:/app
# PHP-FPM Server
php:
image: devilbox/php-fpm:8.2-base
hostname: php
environment:
- NEW_UID=1000
- NEW_GID=1000
volumes:
- ./projects:/shared/httpd