-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.07 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
version: '3.6'
services:
api-service:
container_name: api-service
build:
context: ./api-service
volumes:
- ./api-service:/app
- ./api-service/node_modules:/app/node_modules
ports:
- "3001:3001"
- "5555:5555"
env_file:
- ./api-service/.env.development
command: sh -c "npm i && sleep 5 && npm run start"
depends_on:
- database
- mailhog
stock-service:
container_name: stock-service
build:
context: ./stock-service
volumes:
- ./stock-service:/app
- ./stock-service/node_modules:/app/node_modules
ports:
- "3002:3002"
env_file:
- ./stock-service/.env
command: sh -c "npm i && sleep 5 && npm run start"
database:
container_name: database
image: postgres:16-alpine
volumes:
- database.volumes:/var/lib/postgresql/data
env_file:
- ./config/dev-database.env
ports:
- "5432:5432"
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
database.volumes: {}