-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (32 loc) · 924 Bytes
/
docker-compose.yml
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
version: "3.1"
services:
urlshortener_client:
restart: always
build: ./client
volumes:
- ./client/:/app
image: urlshortener_client
container_name: urlshortener_client
network_mode: host
urlshortener_server:
restart: always
build: ./server
volumes:
- ./server/:/app
image: urlshortener_server
container_name: urlshortener_server
network_mode: host
urlshortener_database:
image: mongo:4
container_name: urlshortener_database
restart: always
volumes:
- urlshortener_database:/data/urlshortener_data
environment:
- MONGO_INITDB_DATABASE=urlshortener
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
ports:
- '27017:27017'
volumes:
urlshortener_database: