forked from japhy-team/backend-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
48 lines (48 loc) · 1.11 KB
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
services:
api:
container_name: backend-test
build:
context: .
dockerfile: Dockerfile
target: dev
env_file:
- .env
depends_on:
mysql-test:
condition: service_healthy
ports:
- 50010:5000
volumes:
- .:/app
mysql-test:
platform: linux/arm64
build: ./.docker-compose/mysql
container_name: mysql-test
env_file:
- .env
volumes:
- .docker-compose/mysql/my.cnf:/etc/mysql/conf.d/my.cnf:ro
- test-mysql-data:/var/lib/mysql
- test-mysql-log:/var/log/mysql
- .docker-compose/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 5s
timeout: 10s
retries: 10
ports:
- 53306:3306
pma-test:
image: arm64v8/phpmyadmin:latest
container_name: pma-test
ports:
- 63306:80
environment:
PMA_HOST: mysql-test
volumes:
- .docker-compose/pma/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php:ro
depends_on:
- mysql-test
volumes:
test-mysql-data:
test-mysql-log: