-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (78 loc) · 2 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
version: '3'
services:
redis:
image: redis:latest
volumes:
- ${PWD}/data/redis:/data
command:
- --dir /data
- --appendonly yes
- --appendfsync everysec
mariadb:
image: mariadb:latest
restart: on-failure
volumes:
- ${PWD}/data/mariadb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
api:
build: ./backend/api
restart: on-failure
volumes:
- ${PWD}/data/api-logs:/root/.npm/_logs
depends_on:
- mariadb
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
web:
build: ./frontend
depends_on:
- api
ports:
- 80:80
db-setup:
build: ./backend/data-updaters/db-setup
depends_on:
- mariadb
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
apps-updater:
build: ./backend/data-updaters/apps-updater
depends_on:
- redis
- db-setup
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
SENTRY_KEY: ${SENTRY_KEY}
SENTRY_PROJECT: ${SENTRY_PROJECT}
packages-updater:
build: ./backend/data-updaters/packages-updater
depends_on:
- redis
- db-setup
environment:
SENTRY_KEY: ${SENTRY_KEY}
SENTRY_PROJECT: ${SENTRY_PROJECT}
queue-updater:
build: ./backend/data-updaters/queue-updater
depends_on:
- redis
- db-setup
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
SENTRY_KEY: ${SENTRY_KEY}
SENTRY_PROJECT: ${SENTRY_PROJECT}
CHANGENUMBER_INIT: ${CHANGENUMBER_INIT}
PACKAGES_MANUAL_START: ${PACKAGES_MANUAL_START}
PACKAGES_MANUAL_END: ${PACKAGES_MANUAL_END}