generated from presencees/auth-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 918 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
44
version: "3"
services:
schedule:
build:
context: .
dockerfile: Dockerfile-compose
image: "schedule-services"
container_name: app_schedule
volumes:
- "./.env/:/opt/app/.env"
- "./index.js/:/opt/app/index.js"
- "./app/:/opt/app/app"
depends_on:
- dbSchedule
networks:
- kong-net
restart: always
command: sh -c "${RUNNER} index.js"
dbSchedule:
image: "mysql:5.7"
container_name: db_schedule
restart: always
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASS}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASS}"
ports:
- "${DB_PORT}"
volumes:
- "./my-db:/var/lib/mysql"
networks:
- kong-net
#redis:
# container_name: "redis_schedule"
# image: "redis:latest"
# networks:
# - kong-net
networks:
kong-net:
external: true