-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
94 lines (87 loc) · 1.82 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
85
86
87
88
89
90
91
92
93
94
version: '3.8'
services:
#docker compose --env-file=.env.docker up -d
php:
build:
context: .
dockerfile: dockerfiles/php.Dockerfile
container_name: php
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: php
working_dir: /var/www
ports:
- "${PHP_PORT}:8000"
volumes:
- ${WWW_ROOT_FOLDER}:/var/www
networks:
- app-network
#MariaDB (MySql) Service
db:
image: yobasystems/alpine-mariadb
container_name: mariadb
restart: unless-stopped
tty: true
ports:
- "${MARIADB_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
SERVICE_NAME: mysql
volumes:
- ${MYSQL_SAVE_FOLDER}:/var/lib/mysql
networks:
- app-network
#Nginx Service
webserver:
build:
context: .
dockerfile: dockerfiles/nginx.Dockerfile
container_name: nginx
restart: unless-stopped
tty: true
ports:
- "${NGINX_PORT_HTTP}:80"
- "${NGINX_PORT_HTTPS}:443"
volumes:
- ${WWW_ROOT_FOLDER}:/var/www
networks:
- app-network
#phpmyadmin
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- "${PMA_PORT}:80"
environment:
- PMA_HOST=db
- PMA_PORT=${MARIADB_PORT}
networks:
- app-network
#node
node:
image: node
container_name: node
restart: unless-stopped
tty: true
working_dir: /src/
volumes:
- ${WWW_ROOT_FOLDER}:/src/
networks:
- app-network
mailhog:
image: mailhog/mailhog
container_name: mailhog
restart: unless-stopped
logging:
driver: 'none'
ports:
- ${MAILHOG_PORT_SMTP}:1025
- ${MAILHOG_PORT_WEBUI}:8025
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge