forked from kistters/DevOps-Php-MySQL-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (72 loc) · 1.97 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
version: '2'
services:
# Nginx :0 easy way :80 :D
web:
image: nginx:1.13.8
container_name: work_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/includes.d:/etc/nginx/includes.d # dir usado para includes files nginx config
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- /storage:/storage # local dir [projects] remember {find . -type f -exec chmod 544 {} \; && find . -type d -exec chmod 755 {} \;}
networks:
- network-back
# PHPs extends file: é a referencia :D assim deixo tudo separado
php-7:
extends:
file: php/php.yml
service: php-7-alpine
php-5:
extends:
file: php/php.yml
service: php-5.6-alpine
# BASE DE DADOS MySQL # TODO talvez passar para um .yml separado
# mysql-5.7:
# extends:
# file: mysql/mysql.yml
# service: mysql-5.7
percona:
extends:
file: mysql/mysql.yml
service: percona
# USAR extends para Tools ;D
phpmyadmin:
extends:
file: tools/tools.yml
service: phpmyadmin
mailhog:
extends:
file: tools/tools.yml
service: mailhog
redis:
extends:
file: tools/tools.yml
service: redis
#Using to test concepts
# elasticsearch:
# image: elasticsearch:latest
# restart: always
# container_name: work_elastic
# ports:
# - "9200:9200"
# - "9300:9300"
# networks:
# - network-back
# mongo:
# image: mongo
# restart: always
# container_name: work_mongo
# ports:
# - "27017:27017"
# volumes:
# - ./mongo/data:/data/db
# - ./mongo/config:/data/configdb
# networks:
# - network-back
# Networks links internos para os services names ;)
networks:
network-back:
driver: bridge