-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1011 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
version: "3"
services:
backend:
build:
context: backend/
dockerfile: Dockerfile
ports:
- "4000:4000"
volumes:
- ./backend/prisma:/app/prisma
networks:
backend_bridge:
ipv4_address: "10.0.0.4"
restart: always
frontend:
build:
context: frontend/
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
backend_bridge:
ipv4_address: "10.0.0.5"
restart: always
# Configuration for the NGINX reverse proxy. This module routes incoming traffic to either the frontend or backend.
gateway:
container_name: nginx
build:
context: nginx/
dockerfile: Dockerfile
ports:
- "80:80"
networks:
backend_bridge:
ipv4_address: "10.0.0.6"
restart: always
# The network configuration isolates the modules within a single network and an IP based on the GROUP_ID.
networks:
backend_bridge:
driver: bridge
ipam:
config:
- subnet: "10.0.0.0/18"