-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 1.17 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
version: '3.7'
services:
app:
env_file:
- env_file_name
environment:
- DOCKER_CONTR=database
build: .
links:
- database
ports:
- "5000:5000"
depends_on:
- database
database:
image: mysql:latest
cap_add:
- SYS_NICE # CAP_SYS_NICE # prevents mbind oepration not permitted error
volumes:
- "./app/protected/chemitrycmpds.sql:/docker-entrypoint-initdb.d/chemitrycmpds.sql"
# - "./startup.sh:/tmp/startup.sh"
#container_name: mysql-container
restart: always #on-failure:3
# command: --init-file=/docker-entrypoint-initdb.d/chemitrycmpds.sql
env_file:
- env_file_name
# environment:
# - MYSQL_DATABASE=chemitrycmpds
# - MYSQL_USER=sktrinh12
# - MYSQL_PASSWORD=bon
# - MYSQL_ROOT_PASSWORD=bon
ports:
- "33061:3306"
# command: "--innodb_use_native_aio=0"
# command: sh -c './wait-for.sh mysql-container:33061 -- python run.py'
# entrypoint:
# - "./chemITry/startup.sh"
# client:
# image: mysql:latest
# depends_on:
# - mysql-server
# command: mysql -u${MYSQL_USER} -p${MYSQL_PASSWORD} -hmysql-server chemitrycmpds