Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.58 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
version: "3"
services:
#######################################################
### PHP
#######################################################
php:
container_name: ${APP_NAME}-php
build:
context: ./docker/php
dockerfile: Dockerfile
user: www-data
links:
- mysql
volumes:
- ".:/var/www"
env_file:
- ${ENV_FILE_DIR}
#######################################################
### NGINX
#######################################################
nginx:
container_name: ${APP_NAME}-nginx
build:
context: ./docker/nginx
dockerfile: Dockerfile
ports:
- "8080:80"
- "8443:443"
links:
- php
volumes:
- ".:/var/www"
env_file:
- ${ENV_FILE_DIR}
#######################################################
### REDIS
#######################################################
redis:
container_name: ${APP_NAME}-redis
image: redis:4-alpine
ports:
- "6379:6379"
env_file:
- ${ENV_FILE_DIR}
#######################################################
### MYSQL
#######################################################
mysql:
container_name: ${APP_NAME}-mysql
image: mysql:8
command: mysqld --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- "./.data/db/mysql:/var/lib/mysql"
env_file:
- ${ENV_FILE_DIR}