-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 964 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 964 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
44
45
46
version: '3.8'
services:
db:
image: mysql:8.0
container_name: b2b-mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: b2b_orders
MYSQL_USER: sg_user
MYSQL_PASSWORD: MiTitulacion2026!
ports:
- "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
- ./db/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql
customers-api:
build: ./customers-api
container_name: b2b-customers-api
ports:
- "3001:3001"
environment:
DB_HOST: db
env_file:
- ./customers-api/.env
depends_on:
- db
orders-api:
build: ./orders-api
container_name: b2b-orders-api
ports:
- "3002:3002"
environment:
DB_HOST: db
CUSTOMERS_API_BASE: http://customers-api:3001/api
env_file:
- ./orders-api/.env
depends_on:
- db
- customers-api
volumes:
mysql_data: