-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.11 KB
/
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
42
43
44
45
46
47
48
49
version: '3'
name: score_counter
services:
score_counter:
build: .
ports:
- "5000:5000"
environment:
DB_HOST: db
DB_PASSWORD: front_end_sucks
depends_on:
db:
condition: service_healthy
db:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: this_project_is_trash
MYSQL_DATABASE: counter_db
MYSQL_USER: counter
MYSQL_PASSWORD: front_end_sucks
volumes:
- .data/mysql:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
phpmyadmin:
image: phpmyadmin:latest
ports:
- "8080:80"
# environment:
# PMA_HOST: db
# MYSQL_ROOT_PASSWORD: this_project_is_trash
# MYSQL_USER: counter
# MYSQL_PASSWORD: front_end_sucks
depends_on:
db:
condition: service_healthy
# docker run --name phpmyadmin --network score_counter_default -d -p 8080:80 phpmyadmin