-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.41 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
version: '3'
services:
### PHP-FPM Container
php-fpm:
container_name: ${COMPOSE_PROJECT_NAME}_php-fpm
build: ./build/php-fpm
restart: always
volumes:
- ./app:/var/www
expose:
- "9000"
links:
- mysql
### NGINX Container
nginx:
container_name: ${COMPOSE_PROJECT_NAME}_nginx
build: ./build/nginx
restart: always
volumes:
- ./logs/nginx/:/var/log/nginx
- ./app:/var/www
ports:
- "80"
- "443"
links:
- php-fpm
### MySQL Container
mysql:
container_name: ${COMPOSE_PROJECT_NAME}_mysql
build: ./build/mysql
restart: always
volumes:
- ./mysql/data/:/var/lib/mysql
- ./mysql/conf.d/:/etc/mysql/conf.d
expose:
- "3306"
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
adminer:
container_name: ${COMPOSE_PROJECT_NAME}_adminer
image: adminer
restart: always
ports:
- "8080"
### Application Code Container
application:
container_name: ${COMPOSE_PROJECT_NAME}_application
restart: always
build: ./build/application
### Workspace Utilities Container
workspace:
container_name: ${COMPOSE_PROJECT_NAME}_workspace
restart: always
build: ./build/workspace
volumes:
- ./app:/var/www:cached
links:
- mysql
tty: true
volumes:
app: