-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.3 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
# This is an example on how to run CSMM with Docker compose.
# This is **not** a production ready deployment template, you must configure a web server, security, ... yourself
version: "3.7"
services:
csmm-web:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
ports:
- 1337:1337
restart: unless-stopped
entrypoint: ["npm", "run", "start:app"]
csmm-worker:
build: .
#image: catalysm/csmm
depends_on:
- cache
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
restart: unless-stopped
entrypoint: ["npm", "run", "start:worker"]
csmm-migrations:
build: .
#image: catalysm/csmm
depends_on:
- db
environment:
NODE_ENV: "production"
env_file: .env
healthcheck:
disable: true
entrypoint: ["sh", "-c", "npm run wait-for:db && npm run db:migrate"]
cache:
image: redis
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
db:
image: mariadb
volumes:
- ./db-data:/var/lib/mysql
env_file: .env
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10