-
Notifications
You must be signed in to change notification settings - Fork 96
/
compose.yaml
43 lines (41 loc) · 995 Bytes
/
compose.yaml
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
services:
db:
image: postgres:15.1-alpine
container_name: database
env_file:
- .env
environment:
POSTGRES_USER: ${NUXT_DB_USER:-postgres}
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: ${NUXT_DB_PASSWORD:-postgrespw}
POSTGRES_DB: ${NUXT_DB_DATABASE:-vidur}
ports:
- '5432:5432'
volumes:
- vidur_data:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
container_name: vidur_app
env_file:
- .env
environment:
PORT: ${PORT:-3001}
NUXT_DB_HOST: db
NUXT_DB_PORT: 5432
NUXT_DB_USER: ${NUXT_DB_USER:-postgres}
NUXT_DB_PASSWORD: ${NUXT_DB_PASSWORD:-postgrespw}
NUXT_DB_DATABASE: ${NUXT_DB_DATABASE:-vidur}
NUXT_BYPASS_ADMIN: ${NUXT_BYPASS_ADMIN:-false}
ports:
- '3001:3001'
depends_on:
- db
volumes:
- .:/app
- /app/node_modules
- static_data:/var/lib/vidur/data
volumes:
vidur_data:
static_data: