-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.04 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
49
50
51
52
53
54
services:
db:
image: mysql:5.7
container_name: pypbald-db
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: pba
MYSQL_USER: pba
MYSQL_PASSWORD: pba
MYSQL_ROOT_PASSWORD: root
volumes:
- db_data:/var/lib/mysql
- ./trunk/schema/pba.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
networks:
- pypbald-net
app:
build:
context: ./trunk
container_name: pypbald-app
depends_on:
db:
condition: service_healthy
volumes:
- ./trunk:/usr/src/app
networks:
- pypbald-net
adminer:
image: adminer:4.8.1
container_name: pypbald-adminer
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: db
ADMINER_DESIGN: pepa-linha
depends_on:
db:
condition: service_healthy
networks:
- pypbald-net
volumes:
db_data:
networks:
pypbald-net:
driver: bridge