-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
51 lines (48 loc) · 1.15 KB
/
docker-compose.yaml
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
services:
web:
image: nginx:latest
container_name: "ngnix_WEB"
volumes:
- ./client:/usr/share/nginx/html
ports:
- "80:80"
db:
image: mariadb:latest
container_name: "db_WEB"
restart: always
environment:
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
volumes:
- ./db:/var/lib/mysql
expose:
- '3306:3306'
depends_on:
- "web"
adminer:
image: adminer
container_name: "adminer_WEB"
restart: always
ports:
- 8080:8080
depends_on:
- "db"
node:
image: "node:latest"
container_name: "node_WEB"
user: "node"
restart: unless-stopped
working_dir: /home/node/app
environment:
- NODE_ENV=production
volumes:
- ./server:/home/node/app
- ./client:/var/www/html
ports:
- "3000:3000"
expose:
- "3000"
depends_on:
- "db"
command: sh -c "npm install && npm start"