forked from canove/whaticket-community
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
61 lines (56 loc) · 1.7 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
52
53
54
55
56
57
58
59
60
61
version: '3'
networks:
whaticket:
services:
backend:
build:
context: ./backend
dockerfile: ./Dockerfile
environment:
- DB_HOST=mysql
- DB_USER=root
- DB_PASS=${MYSQL_ROOT_PASSWORD:-strongpassword}
- DB_NAME=${MYSQL_DATABASE:-whaticket}
- JWT_SECRET=${JWT_SECRET:-3123123213123}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET:-75756756756}
- BACKEND_URL=${BACKEND_URL:-http://localhost}
- FRONTEND_URL=${FRONTEND_URL:-http://localhost:3000}
- PROXY_PORT=${PROXY_PORT:-8080}
- CHROME_ARGS=--no-sandbox --disable-setuid-sandbox
ports:
- ${BACKEND_PORT:-8080}:3000
volumes:
- ./backend/public/:/usr/src/app/public/
networks:
- whaticket
frontend:
ports:
- ${FRONTEND_PORT:-3000}:80
- ${FRONTEND_SSL_PORT:-3001}:443
build:
context: ./frontend
dockerfile: ./Dockerfile
environment:
- URL_BACKEND=backend:3000
- REACT_APP_BACKEND_URL=${BACKEND_URL:-http://localhost}:${PROXY_PORT:-8080}/
- FRONTEND_SERVER_NAME=${FRONTEND_SERVER_NAME}
- BACKEND_SERVER_NAME=${BACKEND_SERVER_NAME}
volumes:
- ./ssl/certs/:/etc/nginx/ssl/
- ./ssl/www/:/var/www/letsencrypt/
networks:
- whaticket
mysql:
image: ${MYSQL_ENGINE:-mariadb}:${MYSQL_VERSION:-10.6}
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
volumes:
- ./.docker/data/:/var/lib/mysql
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE:-whaticket}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-strongpassword}
- TZ=${TZ:-America/Fortaleza}
ports:
- ${MYSQL_PORT:-3306}:3306
restart: always
networks:
- whaticket