-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
38 lines (38 loc) · 889 Bytes
/
compose.yaml
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
services:
webserver:
build: .
ports:
- 5000:5000
volumes:
- tekiens-data:/app/back/data
environment:
DATABASE_HOST: database
DATABASE_USER: tekiens
DATABASE_PASS: secret
DATABASE_NAME: tekiens-net
restart: always
develop:
watch:
- action: rebuild
path: ./
target: /app
database:
image: mariadb:lts
expose:
- 3306
volumes:
- ./mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
# - ./sample.sql:/docker-entrypoint-initdb.d/sample.sql
- tekiens-mysql:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: secret
MARIADB_DATABASE: tekiens-net
MARIADB_USER: tekiens
MARIADB_PASSWORD: secret
restart: always
volumes:
tekiens-mysql:
driver: local
tekiens-data:
driver: local