-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.33 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
version: '3'
services:
backend:
build:
context: ./backend
container_name: cu_backend
depends_on:
- mysql
restart: always
volumes:
- ./_config/php/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini
- ./_config/apache/laravel.conf:/etc/apache2/sites-available/000-default.conf
- ./backend:/var/www/html
- vendor:/var/www/html/vendor
env_file: ./backend/.env.example
ports:
- '8081:80'
frontend:
build:
context: ./frontend
container_name: cu_frontend
ports:
- '80:3000'
restart: always
volumes:
- ./frontend:/usr/src/
- nodemodules:/usr/src/node_modules
command: npm run serve -- --port 3000
mysql:
image: mysql:latest
container_name: cu_db
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./_data/mysql:/var/lib/mysql
- ./_config/sql:/etc/mysql/conf.d
environment:
- MYSQL_DATABASE=laravel
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_ROOT_HOST=%
cap_add:
- SYS_NICE
restart: always
ports:
- '3307:3306'
mailhog:
image: mailhog/mailhog:latest
container_name: cu_mailhog
ports:
- '1025:1025'
- '8025:8025'
volumes:
nodemodules:
vendor:
networks:
default:
name: cu-dockertown