-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
143 lines (128 loc) · 3.5 KB
/
docker-compose.yml
File metadata and controls
143 lines (128 loc) · 3.5 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3'
x-logging: &default-logging
driver: local
options:
max-size: "10m"
max-file: "3"
x-healthcheck: &default-health-check
interval: 30s
timeout: 10s
retries: 5
services:
webserver:
container_name: ${PHP_CONTAINER_NAME}
hostname: ${PHP_CONTAINER_NAME}
restart: unless-stopped
build: ${PHP_PATH}
volumes:
- ${SITES_PATH}:/var/www
- ${PHP_PATH}/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ${PHP_PATH}/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ${PHP_PATH}/php/php.ini:/etc/php81/conf.d/settings.ini
- ${PHP_PATH}/php/www.conf:/etc/php8/php-fpm.d/www.conf
- ${STORAGE_ROOT_PATH}/PHP/nginx:/var/log/nginx
- ${STORAGE_ROOT_PATH}/PHP/php81:/var/log/php81
working_dir: /var/www
ports:
- 8080:8080
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
mysql:
container_name: ${MYSQL_CONTAINER_NAME}
hostname: ${MYSQL_CONTAINER_NAME}
restart: unless-stopped
build: ${MYSQL_PATH}
volumes:
- ${STORAGE_ROOT_PATH}/MySQL:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
adminer:
container_name: ${ADMINER_CONTAINER_NAME}
hostname: ${ADMINER_CONTAINER_NAME}
restart: unless-stopped
build: ${ADMINER_PATH}
environment:
ADMINER_DEFAULT_SERVER: ${MYSQL_CONTAINER_NAME}
ports:
- 8090:8080
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
node:
container_name: ${NODEJS_CONTAINER_NAME}
hostname: ${NODEJS_CONTAINER_NAME}
build: ${NODEJS_PATH}
restart: unless-stopped
volumes:
- ${SITES_PATH}:/var/www
tty: true
working_dir: /var/www
ports:
- 3000:3000
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
rabbitmq:
container_name: ${RABBIT_MQ_CONTAINER_NAME}
hostname: ${RABBIT_MQ_CONTAINER_NAME}
build: ${RABBIT_MQ_PATH}
restart: unless-stopped
volumes:
- ${STORAGE_ROOT_PATH}/RabbiMq:/var/lib/rabbitmq
environment:
- RABBITMQ_DEFAULT_PASS=${RABBIT_MQ_PASS}
- RABBITMQ_DEFAULT_USER=${RABBIT_MQ_USER}
ports:
- 9090:15672 # RabbitMQ Management Panel
- 9091:5672 # RabbitMQ port
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
redis:
container_name: ${REDIS_CONTAINER_NAME}
hostname: ${REDIS_CONTAINER_NAME}
build: ${REDIS_PATH}
restart: unless-stopped
volumes:
- ${STORAGE_ROOT_PATH}/Redis:/data
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
portainer:
container_name: ${PORTAINER_CONTAINER_NAME}
hostname: ${PORTAINER_CONTAINER_NAME}
build: ${PORTAINER_PATH}
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${STORAGE_ROOT_PATH}/Portainer/data:/data
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s
python:
container_name: ${PYTHON_CONTAINER_NAME}
hostname: ${PYTHON_CONTAINER_NAME}
build: ${PYTHON_PATH}
restart: always
ports:
- 8000:8000
volumes:
- ${SITES_PATH}:/var/www
tty: true
logging: *default-logging
healthcheck:
<<: *default-health-check
start_period: 30s