-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (39 loc) · 844 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (39 loc) · 844 Bytes
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
version: "3.9"
services:
db:
image: mysql
restart: 'no'
environment:
MYSQL_DATABASE: 'tks_engine'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ROOT_HOST: '%'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- './db-prod:/var/lib/mysql'
- './local:/var/lib/mysql-files'
- ./apps/database.sql:/docker-entrypoint-initdb.d/database.sql
command: --init-file=/docker-entrypoint-initdb.d/database.sql
# WebUI for mysql database
adminer:
depends_on:
- db
image: adminer:4.8.1
restart: 'no'
ports:
- "8081:8080"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: root
# data enginering aplication
data-engine:
build:
context: .
dockerfile: Dockerfile
restart: 'no'
ports:
- '5000:5000'
depends_on:
- db