-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (44 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
version: '3.9'
services:
web:
build:
context: .
dockerfile: Dockerfile
target: builder
command: npm run start
depends_on:
- db
ports:
- "3001:3001"
environment:
NODE_ENV: production
DATABASE_URL: "postgres://postgres:postgres@db:5432/ev-database"
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_c3RpcnJlZC1zbmFrZS02NC5jbGVyay5hY2NvdW50cy5kZXYk
CLERK_SECRET_KEY: sk_test_MhuZIznF6GfQuu0KpnDO2Ro8VILroZOlVWT0qrlEws
NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
NEXT_UBLIC_CLERK_SIGN_UP_URL: /sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /
NEXT_PUBLIC_APP_URL: https://home.chargingev.app
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ev-database
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
# webhook:
# image: ngrok/ngrok
# environment:
# - NGROK_AUTHTOKEN=1tzbhRNKB7pYxhhI5pcK3qovUfq_2EQGCkdCE8vSek2T9etVu
# command: 'http 3000'
volumes:
db:
driver: local
networks:
my_network:
driver: bridge