-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 1001 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- DATABASE_URL=mysql://root:rootpassword@db:3306/integrador_node
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}
- MAIL_SERVICE_USER=${MAIL_SERVICE_USER}
- MAIL_SERVICE_PASS=${MAIL_SERVICE_PASS}
- MAIL_SERVICE_HOST=${MAIL_SERVICE_HOST}
- MAIL_SERVICE_PORT=${MAIL_SERVICE_PORT}
- JWT_SECRET=${JWT_SECRET}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION=${AWS_REGION}
- BUCKET_NAME=${BUCKET_NAME}
depends_on:
- db
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: integrador_node
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
volumes:
mysql_data: