-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 805 Bytes
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
version: '3.8'
services:
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: app
ports:
- 3333:3306
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
app:
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
mysql:
condition: service_healthy
environment:
API_URL: "http://localhost:3001"
FRONT_END_URL: "http://localhost:3000"
SERVER_PORT: 3001
DATABASE_URL: "mysql://root:password@mysql:3306/app"
JWT_ACCESS_TOKEN_SECRET: "JWTSECRET"
JWT_ACCESS_TOKEN_TIMESPAN: "1h"
JWT_REFRESH_TOKEN_SECRET_LIFESPAN: "10d"
JWT_REFRESH_TOKEN_SECRET: "REFRESHTOKENSECRET"
ports:
- 3001:3001