-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
73 lines (68 loc) · 1.31 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
version: "3"
services:
#NGNIX & PHP IMAGE
app:
build:
context: ./server
dockerfile: Dockerfile
image: laravel-docker/app:latest
networks:
- appnet
volumes:
- ../:/var/www/html
ports:
- ${APP_PORT}:80
working_dir: /var/www/html
#REDIS IMAGE
cache:
image: redis:alpine
networks:
- appnet
volumes:
- cachedata:/data
# MYSQL IMAGE
db:
image: mysql:${MYSQL_VERSION}
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- ${DB_PORT}:3306
networks:
- appnet
volumes:
- dbdata:/var/lib/mysql
# Nodejs IMAGE
node:
build:
context: ./node
dockerfile: Dockerfile
image: laravel-docker/node:latest
networks:
- appnet
volumes:
- ../:/opt
working_dir: /opt
command: echo NodeJS is here
# PHPMyAdmin Image
myadmin:
image: phpmyadmin/phpmyadmin
ports:
- ${PHP_MY_ADMIN_PORT}:80
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
depends_on:
- db
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
dbdata:
driver: local
cachedata:
driver: local