-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (40 loc) · 1.04 KB
/
docker-compose.yaml
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
version: "2.3"
services:
cakcuk_app:
image: cosmtrek/air
command: -c /app/.air.toml
working_dir: /app
ports:
- 8080:80
- 443:443
volumes:
- .:/app
depends_on:
cakcuk_mysql:
condition: service_healthy
environment:
- PORT=80
- MYSQL_HOST=cakcuk_mysql:3306
- MYSQL_USERNAME=cakcuk_user
- MYSQL_PASSWORD=cakcuk_password
- MYSQL_DATABASE=cakcuk_db
- SLACK_TOKEN=${SLACK_TOKEN}
- LOADER=${LOADER}
- SLACK_VERIFICATION_TOKEN=${SLACK_VERIFICATION_TOKEN}
- SLACK_EVENT_ENABLED=true
- SLACK_RTM_ENABLED=false
- SITE_LANDING_PAGE=http://localhost:8080
cakcuk_mysql:
image: mysql:8
ports:
- 33070:3306
healthcheck:
test: mysqladmin ping -h localhost
environment:
- MYSQL_ROOT_HOST=cakcuk_mysql
- MYSQL_USER=cakcuk_user
- MYSQL_PASSWORD=cakcuk_password
- MYSQL_DATABASE=cakcuk_db
- MYSQL_ROOT_PASSWORD=cakcuk_password
volumes:
- ./migration/sql:/docker-entrypoint-initdb.d