-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 978 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (43 loc) · 978 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
47
48
version: "3"
services:
mongo:
image: mongo:latest
container_name: note-taking-app-mongodb-container
restart: unless-stopped
volumes:
- database-data:/data/db
networks:
- bridge-network
note-taking-app:
build:
context: .
dockerfile: Dockerfile
image: note-taking-app
container_name: note-taking-app-container
restart: unless-stopped
env_file: .env
depends_on:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/note-taking-app
networks:
- bridge-network
command: yarn start
nginx-webserver:
image: nginx:mainline-alpine
container_name: note-taking-app-nginx-container
restart: unless-stopped
ports:
- 80:80
volumes:
- ./public:/var/www/static
- ./nginx-conf:/etc/nginx/conf.d
depends_on:
- note-taking-app
networks:
- bridge-network
networks:
bridge-network:
driver: bridge
volumes:
database-data: