-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (32 loc) · 784 Bytes
/
compose.yaml
File metadata and controls
35 lines (32 loc) · 784 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
version: '3'
services:
app:
container_name: my-app-container
image: teemu:test
build:
context: .
environment:
PORT: 8000
ports:
- "8000:8000"
depends_on:
mysql:
condition: service_started
mysql:
container_name: my-mysql-container
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: mydatabase
MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword
volumes:
- mysql-data:/var/lib/mysql
- "./scripts/schema.sql:/docker-entrypoint-initdb.d/1.sql"
ports:
- "3306:3306"
command:
--sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
restart: always
volumes:
mysql-data: