-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 862 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (35 loc) · 862 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
services:
client:
build: ./client
container_name: vue-client
ports:
- "8080:80" # Host:Container → browser hits localhost:8080
depends_on:
- server
networks:
- app-network
server:
build: ./server
container_name: express-server
ports:
- "5000:5000" # expose API for local dev/testing
environment:
- MONGO_URI=mongodb+srv://user:pass@testing.mkmgynm.mongodb.net/?retryWrites=true&w=majority&appName=testing/sticky
depends_on:
- mongo
networks:
- app-network
mongo:
image: mongo:6
container_name: mongo-db
restart: always
ports:
- "27017:27017" # optional, only needed if you want to connect with Mongo Compass locally
volumes:
- mongo_data:/data/db
networks:
- app-network
networks:
app-network:
volumes:
mongo_data: