-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 966 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
42
43
version: '3.4'
services:
go_gryphon_api:
build:
dockerfile: ./docker/goapp.Dockerfile
context: .
image: golang
container_name: go_gryphon_api
restart: always
ports:
- "${APP_PORT}:${APP_PORT}"
expose:
- "${APP_PORT}"
extra_hosts:
- "host.docker.internal:host-gateway"
# depends_on:
# db:
# condition: service_healthy
# links:
# - db
# db:
# image: mysql:5.7
# restart: always
# environment:
# MYSQL_DATABASE: ${DB_NAME}
# MYSQL_USER: ${DB_USER}
# MYSQL_PASSWORD: ${DB_PASSWORD}
# MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
# MYSQL_TCP_PORT: ${DB_PORT}
# ports:
# - '${DB_PORT}:${DB_PORT}'
# expose:
# - '${DB_PORT}'
# volumes:
# - my-db:/var/lib/mysql
# healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
# timeout: 20s
# retries: 10
# volumes:
# my-db: