-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.08 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
version: '3'
volumes:
data-volume: {}
services:
nginx:
container_name: some-nginx
image: nginx:alpine
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./nginx/conf.d/nginx.conf:/etc/nginx/nginx.conf:ro
command: [nginx-debug, '-g', 'daemon off;']
depends_on:
- app
mysql:
container_name: some-mysql
image: mysql/mysql-server:5.7
hostname: mysql
ports:
- "3306:3306"
volumes:
- data-volume:/var/lib/mysql3
- ./SQLSchema/dumps/26_03_dump.sql:/docker-entrypoint-initdb.d/26_03_dump.sql
command: mysqld --sql_mode=""
environment:
MYSQL_DATABASE: classification
MYSQL_ROOT_PASSWORD: ${ENV_MYSQL_ROOT_PASS}
MYSQL_ROOT_HOST: '%'
restart: always
app:
restart: always
hostname: taxonomy-tool
build: .
ports:
- "8081:8081"
expose:
- "8081"
env_file:
- .env
command: /go/src/github/mr-ma/paper-review-go/taxonomyserver -mysqluser root -mysqlpass ${ENV_MYSQL_ROOT_PASS} -mysqlserver mysql:3306 -listen 0.0.0.0:8081
depends_on:
- mysql
links:
- mysql