-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 909 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
45
version: '3.8'
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: teddy_api
ports:
- '3306:3306'
shortner-api:
build:
context: .
dockerfile: ./apps/shortner-api/Dockerfile
container_name: shortner-api
environment:
API_REDIRECT_BASE: http://localhost:3001
DB_HOST: localhost
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: root
DB_NAME: teddy_api
JWT_SECRET: URL_API
depends_on:
- db
ports:
- '3000:3000'
shortner-redirect:
build:
context: .
dockerfile: ./apps/shortner-api/Dockerfile
container_name: shortner-redirect
environment:
DB_HOST: localhost
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: root
DB_NAME: teddy_api
depends_on:
- db
ports:
- '3001:3001'