-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·69 lines (66 loc) · 1.71 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
version: "2.2"
services:
api:
build:
context: .
dockerfile: ./api/Dockerfile
command: yarn run watch
environment:
- NOMICS_API_KEY=${NOMICS_API_KEY}
- BITTREX_API_KEY=${BITTREX_API_KEY}
- BITTREX_API_SECRET=${BITTREX_API_SECRET}
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_DATABASE_TESTING=${MYSQL_DATABASE_TESTING}
- MYSQL_USER=root
- MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
- NODE_ENV=development
- LOG_LEVEL=info
ports:
- "3800:4000"
- "9229:9229"
volumes:
- ./api:/api
depends_on:
- mysql
# mimic $5 DO vps to target performance
# mem_limit: 1g
# memswap_limit: 3g
# cpuset: 0,1
# cpus: ".5"
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- mysqldata:/var/lib/mysql
- ./mysql/mycustom.cnf:/etc/mysql/conf.d/custom.cnf
command: --sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
# mimic $5 DO vps to target performance
# mem_limit: 1g
# memswap_limit: 3g
# cpuset: 0,1
# cpus: ".5"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=mysql
- PMA_ARBITRARY=1
- MYSQL_USER=root
- MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
- UPLOAD_LIMIT=2G
ports:
- "8082:80"
expose:
- "80"
volumes:
- /sessions
- ./phpmyadmin/uploads.ini:/usr/local/etc/php/conf.d/php-phpmyadmin.ini
depends_on:
- mysql
volumes:
mysqldata:
driver: "local"