-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.08 KB
/
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
45
46
47
version: "3"
services:
colkie-dev:
image: node:19
working_dir: /usr/src/colkie-api
command:
- /bin/bash
- -c
- |
npm install
npm run start:dev
environment:
- DB_NAME=colkie_task
- DB_HOST=mysql-colkie
- DB_PORT=3306
- DB_USER=colkie
- DB_PASS=password
ports:
- "3000:3000"
volumes:
- "./colkie-api:/usr/src/colkie-api"
depends_on:
- mysql-colkie
# below could be used to build image for prod
# colkie-api:
# build:
# context: "./colkie-api"
# dockerfile: Dockerfile
# depends_on:
# - mysql-colkie
# environment:
# - DB_NAME=colkie_task
# - DB_HOST=mysql-colkie
# - DB_USER=colkie
# - DB_PASS=password
# ports:
# - "3000:3000"
mysql-colkie:
image: mysql:8.0.23
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- 3307:3306
environment:
MYSQL_DATABASE: colkie_task
MYSQL_USER: colkie
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: example