forked from simde-utc/portail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (52 loc) · 1.21 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
version: '3.7'
volumes:
dbdata:
services:
# The Back-End Application (Laravel)
back:
build:
context: docker/configurations/back
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
working_dir: /var/www/html
volumes:
- ./:/var/www/html
- /var/www/html/vendor # FIME : Share dependencies with the host ? Comment to enable.
depends_on:
- database
env_file:
- .env
# The Front-End Bundler (Webpack)
front:
build:
context: docker/configurations/front
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
working_dir: /app
volumes:
- ./:/app
- /app/node_modules # FIME : Share dependencies with the host ? Comment to enable.
env_file:
- .env
# The Reverse Proxy (Nginx)
proxy:
image: nginx:stable
volumes:
- ./:/var/www/html
- ./docker/configurations/proxy/vhost.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- 8000:80
env_file:
- .env
depends_on:
- back
# The Database (MySQL)
database:
image: mysql:5.6
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=portail
- MYSQL_DATABASE=portail