-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.48 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
version: "3.7"
services:
minhasfinancas:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- minhas-financas-network
# nginx
nginx:
container_name: srv-nginx
image: nginx:alpine
restart: unless-stopped
ports:
- "9000:80"
volumes:
- ./:/var/www
- ./docker/nginx/:/etc/nginx/conf.d/
networks:
- minhas-financas-network
# db mysql ${DB_DATABASE} //Busca do arquivo .env
mysql:
container_name: financas-mysql
image: mysql:5.7.22
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
volumes:
- ./.docker/mysql/dbdata:/var/lib/mysql
ports:
- '${FORWARD_DB_PORT:-3307}:3307'
networks:
- minhas-financas-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin-minhasfinancas
links:
- mysql
restart: always
environment:
- PMA_ARBITRARY=1
ports:
- 9010:80
networks:
- minhas-financas-network
networks:
minhas-financas-network:
driver: bridge
#Doc. de utilizacao
# para acessar phpmyadmin no navegador: http://localhost:9010/ - e a porta
# para acessar nginx(servidor) no navegador: http://localhost:9000/ - e a porta
#PHPMYADMIN info no file
# servidor: mysql
# user: root
# pass: root