-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (65 loc) · 1.38 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
version: "3.1"
services:
consul:
build: conf/consul
container_name: emp-autodiscovery
working_dir: /consul
volumes:
- ./data/autodiscovery:/consul/data
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
ports:
- "8500:8500"
dns:
- 127.0.0.1
deploy:
resources:
limits:
memory: 128M
mariadb:
image: mariadb:10.4
container_name: emp-db
restart: always
working_dir: /var/lib/mysql
volumes:
- ./data/db:/var/lib/mysql
env_file:
- ./conf/mariadb/db.env
environment:
- CONSUL=consul
ports:
- "8890:3306"
nginx:
image: nginx:alpine
container_name: emp-web
working_dir: /var/www/html
volumes:
- ./data/apps:/var/www/html
- ./conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./data/logs:/var/log/nginx
environment:
- CONSUL=consul
ports:
- "80:80"
php-fpm:
build: conf/php-fpm
container_name: emp-php
working_dir: /var/www/html
volumes:
- ./data/apps:/var/www/html
- ./conf/php-fpm/php-ini-overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini
composer:
build: conf/composer
container_name: emp-composer
working_dir: /var/www/html
volumes:
- ./data/apps:/var/www/html
networks:
default:
external:
name: emp-base