-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (41 loc) · 1.18 KB
/
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
services:
storefront:
container_name: nextJs-Ventrue-Starter-Template-Container
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
#AS This compose is made to be used with a proxy, ports are not being exposed
# if you need any port mapping from container<-> host, uncomment
# ports:
# - 8000:8000
depends_on:
- database
env_file:
- ./.env
networks:
#TO BE USED WITH NGINX PROXY MANAGER, comment if your are exposing it directly
frontend:
ipv4_address: 192.168.1.24
database:
image: postgres:latest
container_name: nextJs-Ventrue-Postgres
restart: unless-stopped
volumes:
- ./backups:/docker-entrypoint-initdb.d
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
#Persistent database under prisma directory
- ./prisma/database/:/var/lib/postgresql/data
env_file:
- ./.env
networks:
backend:
networks:
#TO BE USED WITH NGINX PROXY MANAGER, comment if your are exposing it directly
frontend:
name: proxy
external: true
#Internal network of the stack
backend:
name: nextJs-Ventrue-network