-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·74 lines (68 loc) · 2.05 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
version: '3.7'
services:
### PHP-FPM ##############################################
php-fpm:
build:
context: ./docker/php-fpm
tty: true
environment:
TZ: ${WORKSPACE_TIMEZONE}
volumes:
- ./src:/var/www
- ./docker/php-fpm/local.ini:/usr/local/etc/php/conf.d/local.ini
restart: always
networks:
- core-network
### NGINX Server #########################################
nginx:
image: mahradbt/nginx:latest
tty: true
ports:
- "80:80"
volumes:
- ./src:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./DATA/nginx:/var/log/nginx/
- ./DATA/certbot/conf:/etc/letsencrypt
- ./DATA/certbot/www:/var/www/certbot
restart: always
networks:
- core-network
### MariaDB ##############################################
mariadb:
image: mariadb:latest
volumes:
- ${DATA_PATH_HOST}/mariadb:/var/lib/mysql
environment:
- TZ=${WORKSPACE_TIMEZONE}
- MYSQL_DATABASE=${MARIADB_DATABASE}
- MYSQL_USER=${MARIADB_USER}
- MYSQL_PASSWORD=${MARIADB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
restart: always
networks:
- core-network
### phpMyAdmin ###########################################
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=mariadb
- MYSQL_USER=${PMA_USER}
- MYSQL_PASSWORD=${PMA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
ports:
- 9080:80
restart: always
networks:
- core-network
### Redis ################################################
redis:
image: redis:latest
volumes:
- ${DATA_PATH_HOST}/redis:/data
networks:
- core-network
#Docker Networks
networks:
core-network:
driver: bridge