-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
85 lines (81 loc) · 1.78 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
networks:
ecovacs_stack:
internal: true
services:
mysql:
image: mysql:latest
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=dev
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
- MYSQL_DATABASE=dev
- TZ=America/New_York
networks:
ecovacs_stack:
default:
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/mysql.conf.d:/etc/mysql/conf.d
- ./mysql/scripts/init.sql:/docker-entrypoint-initdb.d/1.sql
restart: unless-stopped
backend:
depends_on:
- mysql
build:
context: ./backend
dockerfile: Dockerfile
networks:
ecovacs_stack:
default:
volumes:
- ./backend:/opt/app
user: '${UID}:${GID}'
environment:
- BASE_URL=https://localhost
- BASE_URL_01=https://ecovacs.com
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
- MYSQL_DATABASE=dev
- TZ=America/New_York
command: bash -c './generate_certs.sh && yarn install && yarn run dev'
stdin_open: true
restart: unless-stopped
nginx:
depends_on:
- backend
image: nginx:alpine
ports:
- 8883:8883
- 443:443
- 3000:3000
- 8070:80
networks:
default:
ecovacs_stack:
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./nginx/:/etc/nginx:ro
restart: unless-stopped
frontend:
depends_on:
- nginx
build:
context: ./frontend
dockerfile: Dockerfile
user: '${UID}:${GID}'
environment:
- WDS_SOCKET_PORT=0
- TZ=America/New_York
networks:
default:
volumes:
- ./frontend:/opt/app
ports:
- 4200:3000
command: bash -c 'yarn install && yarn start'
stdin_open: true
restart: unless-stopped