forked from aleksbobic/csx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.5 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
version: "3.8"
services:
server:
container_name: csx_server
image: csxi_server
build:
context: ./
dockerfile: docker/Dockerfile.server
volumes:
- ./server:/cs
ports:
- 8881:80
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 80
app:
container_name: csx_app
image: csxi_app
build:
context: ./
dockerfile: docker/Dockerfile.app
ports:
- 8882:3000
volumes:
- ./app:/home/node/csx
depends_on:
- server
- analytics
command: bash -c "npm install && npm start"
mysql:
image: "mysql:5.7"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: analytics
command: --max_allowed_packet=128000000 #Bytes
ports:
- "3316:3306"
volumes:
- ./mysql:/var/lib/mysql
container_name: csx_analytics_db
analytics:
image: matomo:latest
container_name: csx_analytics
volumes:
- ./analytics:/var/www/html
environment:
MATOMO_DATABASE_HOST: csx_analytics_db
MATOMO_DATABASE_USERNAME: root
MATOMO_DATABASE_PASSWORD: root
MATOMO_DATABASE_DBNAME: analytics
ports:
- 8883:80
links: [mysql]
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.1
environment:
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
container_name: csx_elastic