-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.16 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
mysql:
image: mysql:latest
container_name: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: afrus
TZ: "America/Argentina/Buenos_Aires"
ports:
- 3306:3306
networks:
- app_network
volumes:
- ./docker/mysql:/var/lib/mysql
api:
build: ./api
container_name: api_rest
restart: always
ports:
- "3001:3001"
environment:
- NODE_ENV=development
- DATABASE_URL="mysql://root:password@mysql:3306/afrus"
volumes:
- ./api:/app
- /app/node_modules
depends_on:
- mysql
networks:
- app_network
frontend:
build: ./frontend
container_name: react_app
restart: always
ports:
- "3000:80"
depends_on:
- api
networks:
- app_network
swagger-ui:
image: swaggerapi/swagger-ui
container_name: swagger_ui
ports:
- "8080:8080"
environment:
- URL=/api-docs/swagger.json
volumes:
- ./api/swagger.json:/usr/share/nginx/html/api-docs/swagger.json
depends_on:
- api
networks:
- app_network
networks:
app_network:
driver: bridge