-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (76 loc) · 1.76 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
version: "3.4"
services:
mariadb:
restart: always
image: "mariadb:latest"
env_file: database.env
environment:
TZ: Europe/Berlin
TIME_ZONE: Europe/Berlin
mem_limit: 300m
deploy:
resources:
limits:
memory: 300m
expose:
- 3306
ports:
- "4306:3306"
volumes:
# first create database
- ./init.sql:/docker-entrypoint-initdb.d/1-init.sql:ro
# setup database content from latest backup if started the first time
- ./enterprise-current.sql:/docker-entrypoint-initdb.d/3-enterprise-current.sql:ro
- db-data:/var/lib/mysql
networks:
enterprise:
aliases:
- mariadb
crawler:
restart: always
image: ghcr.io/mytlogos/enterprise-lister:v2.25.0
command: ["node", "packages/scraper/dist/startCrawler.js"]
working_dir: /code
volumes:
- /media/data/docker/enterprise/logs:/code/logs
depends_on:
- mariadb
ports:
- "3003:3000"
- "3004:3001"
networks:
enterprise:
aliases:
- crawler
env_file: env.env
environment:
dbHost: mariadb
TZ: Europe/Berlin
TIME_ZONE: Europe/Berlin
NODE_APP_NAME: crawler
web:
restart: always
image: ghcr.io/mytlogos/enterprise-lister:v2.25.0
command: ["node", "packages/server/dist/startServer.js"]
working_dir: /code
volumes:
- /media/data/docker/enterprise/logs:/code/logs
depends_on:
- mariadb
ports:
- "3000:3000"
- "3001:3001/udp"
networks:
enterprise:
aliases:
- web
env_file: env.env
environment:
dbHost: mariadb
TZ: Europe/Berlin
TIME_ZONE: Europe/Berlin
NODE_APP_NAME: server
volumes:
db-data:
networks:
enterprise: