-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 789 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 789 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
32
33
34
35
36
37
38
39
40
41
42
43
version: "3"
services:
node:
build: .
container_name: service_api
tty: true
stdin_open: true
command: bash
restart: always
working_dir: /app
volumes:
- ./:/app
depends_on:
- db
ports:
- 3000:3000
environment:
MYSQL_USER: root
MYSQL_PASSWORD: password
MYSQL_HOST: db
JWT_SECRET: secretJWT
API_HOST: 'node'
API_PORT: 3000
NODE_ENV: 'development'
networks:
- service_api_net
db:
container_name: service_api_db
image: mysql:8.0.23
platform: linux/x86_64
restart: always
ports:
- 3306:3306
- 33060:33060
environment:
MYSQL_ROOT_PASSWORD: password
networks:
- service_api_net
networks:
service_api_net:
driver: bridge