-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 950 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 950 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
version: "3.8"
services:
server:
container_name: SeeFT-API
build:
context: .
dockerfile: ./Dockerfile
restart: always
command: ["dart", "run", "--enable-vm-service", "/myapp/lib/main.dart"]
ports:
- "3000:3000"
privileged: true
stdin_open: true
tty: true
links:
- db
volumes:
- ./:/myapp
env_file: .env
healthcheck:
test: ["curl localhost:3000/healthz"]
interval: 60s
timeout: 10s
retries: 10
db:
container_name: SeeFT-DB
image: mariadb:10.8.3
volumes:
- ./mariadb/initdb.d:/docker-entrypoint-initdb.d
- ./mariadb/db:/var/lib/mysql
ports:
- "3306:3306"
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --skip-character-set-client-handshake
environment:
MARIADB_DATABASE: seeft
MARIADB_ROOT_PASSWORD: pwd
MARIADB_USER: mysql
MARIADB_PASSWORD: pwd