-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
130 lines (119 loc) · 2.82 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
119
120
121
122
123
124
125
126
127
128
129
130
version: "3"
services:
work:
build:
context: ./work
args:
- WORK_USER=${WORK_USER}
- HOST_USER_ID=${HOST_USER_ID}
- HOST_GROUP_ID=${HOST_GROUP_ID}
- DOMAIN=${DOMAIN}
tty: true
environment:
- WORK_USER=${WORK_USER}
- DOMAIN=${DOMAIN}
- CERTBOT_EMAIL=${CERTBOT_EMAIL}
- CERTBOT_CLOUDFLARE_EMAIL=${CERTBOT_CLOUDFLARE_EMAIL}
- CERTBOT_CLOUDFLARE_API=${CERTBOT_CLOUDFLARE_API}
volumes:
- ${PROJECT_PATH}:/var/www
- ./data/certbot:/etc/letsencrypt
- ./data/ssl:/etc/nginx-ssl
php:
build:
context: ./php
args:
- WORK_USER=${WORK_USER}
volumes:
- ${PROJECT_PATH}:/var/www
php8:
image: nazmulpcc/php:8.0-fpm
volumes:
- ${PROJECT_PATH}:/var/www
nodejs:
build:
context: ./nodejs
args:
- WORK_USER=${WORK_USER}
- HOST_USER_ID=${HOST_USER_ID}
- HOST_GROUP_ID=${HOST_GROUP_ID}
- NODEJS_STARTUP=${NODEJS_STARTUP}
volumes:
- ${PROJECT_PATH}:/var/www
nginx:
build:
context: ./nginx
volumes:
- ./data/ssl:/etc/nginx/ssl
- ${NGINX_SITES}:/etc/nginx/conf.d
- ${PROJECT_PATH}:/var/www
ports:
- 80:80
- 443:443
depends_on:
- php
- work
socket:
build:
context: ./socket
volumes:
- ./data/ssl:/etc/nginx/ssl
ports:
- 4000:4000
depends_on:
- php
mysql:
restart: unless-stopped
build:
context: ./mysql
args:
- TIMEZONE=${TIMEZONE}
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${TIMEZONE}
ports:
- ${MYSQL_PUBLIC_PORT}:3306
volumes:
- ./data/mysql:/var/lib/mysql
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
mongo:
image: mongo:4.4.6
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports:
- ${MONGO_PUBLIC_PORT}:27017
volumes:
- ./data/mongo:/data/db
phpmyadmin:
build:
context: ./phpmyadmin
environment:
- PMA_HOST=mysql
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports:
- "${PMA_PORT}:80"
depends_on:
- mysql
backup:
build:
context: ./backup
environment:
- BACKUP_FREQUENCY=${BACKUP_FREQUENCY}
- BACKUP_KEEP=${BACKUP_KEEP}
- MYSQL_USER=${BACKUP_MYSQL_USER}
- MYSQL_PASSWORD=${BACKUP_MYSQL_PASSWORD}
volumes:
- ./data/backup:/var/backup
- ./data/mysql:/var/lib/mysql
depends_on:
- mysql
redis:
build:
context: ./redis