forked from simde-utc/portail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 872 Bytes
/
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
version: '3.7'
services:
# The Application
app:
build:
context: ./
dockerfile: docker/app.dockerfile
working_dir: /var/www/html
depends_on:
- database
- nodejs
volumes:
- ./:/var/www/html
env_file:
- docker/.env.docker
nodejs:
build:
context: ./
dockerfile: docker/node.dockerfile
working_dir: /var/www/html
volumes:
- ./:/var/www/html
- ./node_modules:/var/www/node_modules
# The Web Server
web:
image: nginx:latest
ports:
- 8000:80
volumes:
- .:/var/www/html
- ./docker/vhost.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
# The Database
database:
image: mysql:5.6
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=portail
- MYSQL_DATABASE=portail
volumes:
dbdata: