-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
63 lines (61 loc) · 1.47 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
version: '3.0'
services:
sql:
container_name: "sealhub_sql"
image: mysql:8.0
networks:
- sealnet
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "${SQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${SQL_DATABASE}"
MYSQL_USER: "${SQL_USERNAME}"
MYSQL_PASSWORD: "${SQL_PASSWORD}"
volumes:
- ./sql/mysql-data:/var/lib/mysql
- ./sql/mysql-files:/var/lib/mysql-files
cache:
container_name: "sealhub_cache"
image: redis:alpine
networks:
- sealnet
ports:
- "6379:6379"
volumes:
- ./cache/data:/data
- ./cache/conf:/usr/local/etc/redis
restart: unless-stopped
app:
container_name: "sealhub"
networks:
- sealnet
#depends_on:
# - sql
build:
context: ./app
dockerfile: Dockerfile
args:
SQL_HOST: sql
SQL_USERNAME: "${SQL_USERNAME}"
SQL_PASSWORD: "${SQL_PASSWORD}"
SQL_DATABASE: "${SQL_DATABASE}"
environment:
PROTOCOL: "${APP_PROTOCOL}"
HTTP_PORT: "${APP_HTTP_PORT}"
SQL_HOST: "${SQL_HOST:-sql}"
SQL_USERNAME: "${SQL_USERNAME}"
SQL_PASSWORD: "${SQL_PASSWORD}"
SQL_DATABASE: "${SQL_DATABASE}"
volumes:
- ./app:/usr/src/app
- ./ssl:/usr/src/app/ssl
- /usr/src/app/node_modules
ports:
- "${APP_HTTP_PORT:-80}:8000"
- "${APP_HTTPS_PORT:-443}:8443"
restart: unless-stopped
command: npm start
networks:
sealnet:
external: true