-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 973 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
web:
build:
context: ./web
dockerfile: Dockerfile
image: ghcr.io/idaholab/resdeeds/web
container_name: resdeeds-web
ports:
- 80:80
- 443:443
- 4200:4200
stdin_open: true
tty: true
volumes:
- ./web:/var/www
- node_modules:/var/www/node_modules
- ./web/etc/ssl:/etc/ssl
- ./web/etc/nginx/conf.d:/etc/nginx/conf.d
- ./web/etc/nginx/log:/var/log/nginx
api:
build:
context: ./api
dockerfile: Dockerfile
image: ghcr.io/idaholab/resdeeds/api
container_name: resdeeds-api
depends_on:
- mongodb
env_file:
- ./api/.env
ports:
- 5000:5000
stdin_open: true
tty: true
volumes:
- ./api:/var/www
mongodb:
container_name: resdeeds-mongodb
env_file:
- ./api/.env
image: mongo:8.0
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db
volumes:
node_modules:
mongodb_data: