-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (75 loc) · 1.88 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
version: '3'
services:
php:
env_file: .env
build:
context: ./etc/php
container_name: ${APP_NAME}_php
entrypoint: sh /bin/entrypoint.sh php-fpm
restart: always
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./etc/php/entrypoint.sh:/bin/entrypoint.sh"
- ${APP_PATH}:/var/www
links:
- db:mysql
expose:
- 9000
db:
image: mysql:8
container_name: ${APP_NAME}_db
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- "./etc/db/data:/var/lib/mysql"
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-authentication-plugin=mysql_native_password'
]
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${APP_NAME}_pma
ports:
- 5426:80
links:
- db:db
depends_on:
- db
nodejs:
env_file: .env
build: ./etc/nodejs
container_name: ${APP_NAME}_nodejs
restart: "no"
entrypoint: sh /bin/entrypoint.sh
volumes:
- ${APP_PATH}:/var/www/html
- ./etc/nodejs/entrypoint.sh:/bin/entrypoint.sh
apache:
env_file: .env
build: ./etc/httpd
volumes:
- "./etc/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf"
- ${APP_PATH}:/var/www
depends_on:
- php
expose:
- 8080
web:
env_file: .env
build: etc/nginx
container_name: ${APP_NAME}_nginx
ports:
- 80:80
restart: always
volumes:
- "./etc/nginx/nginx.conf:/etc/nginx/nginx.conf"
- "./etc/nginx/app.conf:/etc/nginx/sites-available/application.conf"
- "./etc/nginx/app.conf:/etc/nginx/sites-enabled/application"
- "./etc/log/nginx:/var/log/nginx"
- ${APP_PATH}:/var/www
depends_on:
- apache