-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (75 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
81 lines (75 loc) · 1.54 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
version: "3.7"
services:
# back-end php
backend:
build:
context: docker/services/backend
dockerfile: Dockerfile
args:
USUARIO: ${USUARIO}
GRUPO: ${GRUPO}
UID: ${UID}
GID: ${GID}
restart: unless-stopped
container_name: backend
volumes:
- ./www:/var/www
ports:
- "8000:80"
networks:
- apache-php
# front-end
frontend:
build:
context: docker/services/frontend
dockerfile: Dockerfile
args:
USUARIO: ${USUARIO}
GRUPO: ${GRUPO}
UID: ${UID}
GID: ${GID}
restart: unless-stopped
container_name: frontend
volumes:
- ./frontend:/usr/local/apache2/htdocs
ports:
- "8001:80"
networks:
- apache-php
# db mysql
db:
image: mysql:8.1
platform: linux/x86_64
restart: unless-stopped
environment:
MYSQL_DATABASE: esqueleto_webserver_apache_php
MYSQL_ROOT_PASSWORD: admin_master
MYSQL_PASSWORD: admin
MYSQL_USER: noreply@phpfullstack.com.br
volumes:
- ./.docker/mysql/dbdata:/var/lib/mysql
ports:
- "3300:3306"
networks:
- apache-php
# PHPMyAdmin
phpmyadmin:
image: phpmyadmin/phpmyadmin
platform: linux/x86_64
restart: unless-stopped
ports:
- "8002:80"
environment:
PMA_HOST: db
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: admin_master
networks:
- apache-php
# redis
redis:
image: redis:8.0-M02
networks:
- apache-php
networks:
apache-php:
driver: bridge