-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (45 loc) · 923 Bytes
/
compose.yaml
File metadata and controls
45 lines (45 loc) · 923 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
services:
mongodb:
image: mongo:5.0
container_name: ce_mongodb
restart: always
ports:
- 27017:27017
volumes:
- ./docker/mongodb/data:/data/db
env_file:
- ./docker/mongodb/.env-mongodb
mongo_express:
image: mongo-express:0.54
container_name: ce_mongo_express
restart: always
depends_on:
- mongodb
ports:
- 8081:8081
env_file:
- ./docker/mongodb/.env-mongo-express
api:
image: node:16-alpine
container_name: ce_api
depends_on:
- mongo_express
ports:
- 3000:3000
env_file:
- ./api/.env
volumes:
- ./api:/app
working_dir: /app
command: sh -c "yarn && yarn nodemon"
mobile:
build: ./mobile
container_name: ce_mobile
depends_on:
- api
ports:
- 19000:19000
volumes:
- ./mobile:/app
working_dir: /app
command: sh -c "yarn && yarn start"