-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.1 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
version: "3"
services:
frontend:
image: irostub/docker-frontend
container_name: app_frontend
volumes:
- /app/node_modules
- ./frontend:/app
stdin_open: true
mem_limit: 128m
nginx:
restart: always
image: irostub/docker-nginx
container_name: app_nginx
ports:
- "80:80"
mem_limit: 128m
links:
- frontend
- backend
backend:
image: irostub/docker-backend
container_name: app_backend
volumes:
- /app/node_modules
- ./backend:/app
environment:
MYSQL_HOST: $MYSQL_HOST
MYSQL_USER: $MYSQL_USER
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_PORT: $MYSQL_PORT
mem_limit: 128m
# mysql:
# build: ./mysql
# restart: unless-stopped
# container_name: app_mysql
# ports:
# - "3803:3306"
# volumes:
# - ./mysql/mysql_data:/var/lib/mysql
# - ./mysql/sqls/:/docker-entrypoint-initdb.d/
# environment:
# MYSQL_ROOT_PASSWORD: "irostub"
# MYSQL_DATABASE: "mydb"