-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (83 loc) · 2.17 KB
/
docker-compose.yml
File metadata and controls
92 lines (83 loc) · 2.17 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
version: "3.7"
networks:
lempnet:
volumes:
db_data:
external: true
services:
# sass-server:
# image: node:10
# container_name: sass-server
# user: node
# working_dir: "/sass-server"
# ports:
# - "3003:3003"
# volumes:
# - ./:/sass-server
# networks:
# - lempnet
# command: "npx pm2 start ecosystem.config.js --no-daemon"
# apache:
# image: httpd:latest
# container_name: apache
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./www/:/var/www/html/
# - ./config/apache/default.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf
# networks:
# - lempnet
# mqtt:
# container_name: mqtt
# image: eclipse-mosquitto
# restart: always
# volumes:
# - ./config/mosquitto/config:/mosquitto/config
# - ./config/mosquitto/data:/mosquitto/data
# - ./config/mosquitto/log:/mosquitto/log
# ports:
# - 1883:1883
# - 9001:9001
# networks:
# - lempnet
web:
image: nginx:latest
container_name: web
ports:
- "80:80"
- "443:443"
volumes:
- ./www:/var/www/html:cached
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./logs/nginx:/var/log/nginx
networks:
- lempnet
php:
image: php7.3
container_name: php
ports:
- "9080:9000"
volumes:
- ./www:/var/www/html:cached
- ./config/php-fpm/php-fpm.conf:/usr/local/etc/php-fpm.conf
networks:
- lempnet
mysql:
image: mysql:5.7
container_name: mysql
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: password
networks:
- lempnet
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
networks:
- lempnet