-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
38 lines (36 loc) · 870 Bytes
/
docker-compose.prod.yml
File metadata and controls
38 lines (36 loc) · 870 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
services:
# NextJS exported app running on an nginx webserver
todo-client-prod:
container_name: todo-client-prod
image: weaponsforge/todo-client:latest
restart: always
env_file:
- ./client/.env
build:
context: ./client
dockerfile: Dockerfile
target: production
networks:
- todo-next-prod
ports:
- "3000:3000"
# Express web server app running in production mode
# Connects to remote MongoDB i.e., MongoDB Atlas
todo-server-prod:
container_name: todo-server-prod
image: weaponsforge/todo-server:latest
restart: always
env_file:
- ./server/.env
build:
context: ./server
dockerfile: Dockerfile
target: production
networks:
- todo-next-prod
ports:
- "3001:3001"
networks:
todo-next-prod:
name: todo-next-prod
external: false