-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 992 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
version: "3.9" #This denotes that we are using version 3 of Docker Compose
services: #This section defines all the different containers we will create.
predict-prod-web: #This is the name of our Nextjs application.
build:
context: .
dockerfile: Dockerfile
profiles: ["prod"]
ports:
- "4000:3000"
env_file:
- .env
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
predict-preprod-web:
build:
context: .
dockerfile: Dockerfile
profiles: ["preprod"]
ports:
- "4401:3000"
env_file:
- .env
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
predict-staging-web:
build:
context: .
dockerfile: Dockerfile
profiles: ["staging"]
ports:
- "4441:3000"
env_file:
- .env
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"