-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.13 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'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- 3000:80
links:
- mysql:db
depends_on:
- mysql
container_name: numeris_phpmyadmin
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'numeris'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
container_name: numeris_mysql
back:
build:
context: ./back
dockerfile: Dockerfile
env_file:
- back/.env
environment:
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
- ./back:/home/numeris
- /home/numeris/vendor
ports:
- ${BACK_PORT}:80
links:
- mysql
depends_on:
- mysql
container_name: numeris_back
front:
build:
context: ./front
dockerfile: Dockerfile
volumes:
- ./front/src:/home/numeris/src
- /home/numeris/node_modules
links:
- back
expose:
- ${FRONT_PORT}
ports:
- ${FRONT_PORT}:${FRONT_PORT}
command: ng s --host 0.0.0.0
container_name: numeris_front