forked from not-empty/zord-microframework-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
40 lines (37 loc) · 764 Bytes
/
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
services:
zord-http:
build:
context: .
dockerfile: docker/dev/Dockerfile
container_name: zord-http
env_file:
- .env
ports:
- "9000:9000"
command: air http
depends_on:
zord-mysql:
condition: service_healthy
volumes:
- ./:/app
zord-mysql:
image: mysql:latest
container_name: zord-mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
start_period: 5s
interval: 1s
timeout: 5s
retries: 2
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
ports:
- "3307:3306"
volumes:
- storage:/var/lib/mysql
volumes:
storage:
networks:
default:
name: go-skeleton-network