-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
41 lines (40 loc) · 1014 Bytes
/
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
version: '3.4'
services:
db:
container_name: otlplus-db
platform: linux/amd64
image: mysql:5.7
restart: on-failure
ports:
- "53306:3306"
environment:
- MYSQL_ROOT_HOSTS=%
- MYSQL_ROOT_PASSWORD=${OTLPLUS_DB_PASSWORD}
- MYSQL_DATABASE=otlplus
volumes:
- ./volumes/db:/var/lib/mysql
- ./volumes/dump:/dump
command: |
--sql_mode=NO_ENGINE_SUBSTITUTION --default_storage_engine=InnoDB
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
back:
depends_on:
wait-for-db:
condition: service_completed_successfully
container_name: otlplus-back
platform: linux/amd64
build:
context: .
dockerfile: ./docker/Dockerfile.back.local
restart: always
tty: true
ports:
- "58000:8000"
volumes:
- .:/var/www/otlplus:ro
working_dir: /var/www/otlplus
wait-for-db:
image: atkrad/wait4x
depends_on:
- db
command: tcp db:3306 -t 30s -i 250ms