-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (61 loc) · 1.41 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
services:
mysql:
container_name: mysql
image: 'mysql:8'
ports:
- 3306:3306
restart: on-failure
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 4D#BF_RPtrQ3Q2n=VuNR!k5WvhLsmB#8
MYSQL_DATABASE: omm
MYSQL_USER: omm
MYSQL_PASSWORD: LhWxqJ^?pn@6AK+md6wZ_hsA=Qz52DSm
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 5s
retries: 10
command:
- --sort_buffer_size=5M
- --innodb_buffer_pool_size=1G
server:
container_name: openmonkeymind
image: cogsci/omm-server:latest
environment:
NODE_ENV: production
HOST: 0.0.0.0
BASE_URL:
API_URL:
PORT:
DB_CONNECTION: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_USER: omm
DB_PASSWORD: LhWxqJ^?pn@6AK+md6wZ_hsA=Qz52DSm
DB_DATABASE: omm
APP_KEY: 2wsjLSopTjD6WQEztTYIZgCFou8wpLJn
MAIL_CONNECTION:
SMTP_HOST:
SMTP_PORT:
MAIL_USERNAME:
MAIL_PASSWORD:
MAIL_SENDER_NAME:
MAIL_SENDER_EMAIL:
depends_on:
mysql:
condition: service_healthy
restart: on-failure
ports:
- "${PORT}:${PORT}"
volumes:
- files-data:/img/public/files
mailhog:
image: mailhog/mailhog:latest
restart: on-failure
ports:
- 1025:1025 # smtp server
- 3001:8025 # web ui
volumes:
mysql-data:
files-data: