-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (51 loc) · 1.7 KB
/
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
48
49
50
51
52
53
54
55
name: cooky
networks:
default:
name: cooky
services:
app:
build:
context: .
image: cooky_app
container_name: cooky_app
environment:
- DATABASE_URL=postgresql://${COOKY_USER:-cooky}:${COOKY_PASSWORD:-cooky}@postgres:5432/${COOKY_DATABASE:-cooky}?schema=public
- NUXT_AUTH_JS_SECRET=${AUTH_SECRET:-cooky}
- NUXT_PUBLIC_AUTH_JS_BASE_URL=http://localhost:8080
- NUXT_FILE_STORAGE_PATH=/var/lib/cooky/data
- NUXT_FILE_STORAGE_SECRET=${FILE_STORAGE_SECRET:-cooky}
ports:
- "8080:8080"
volumes:
- ./.storage:/var/lib/cooky/data
depends_on:
- postgres
postgres:
build:
context: .
dockerfile: prisma/Dockerfile
image: cooky_postgres
container_name: cooky_postgres
environment:
- POSTGRES_USER=${ROOT_USER:-root}
- POSTGRES_PASSWORD=${ROOT_PASSWORD:-root}
- POSTGRES_DB=${COOKY_DATABASE:-cooky}
- COOKY_USER=${COOKY_USER:-cooky}
- COOKY_PASSWORD=${COOKY_PASSWORD:-cooky}
- FILE_STORAGE_PATH=/var/lib/cooky/data
- FILE_STORAGE_SECRET=${FILE_STORAGE_SECRET:-cooky}
ports:
- "5432:5432"
volumes:
- ./package.json:/docker-entrypoint-initdb.d/package.json
- ./package-lock.json:/docker-entrypoint-initdb.d/package-lock.json
- ./tsconfig.json:/docker-entrypoint-initdb.d/tsconfig.json
- ./prisma:/docker-entrypoint-initdb.d/prisma
- ./server/utils:/docker-entrypoint-initdb.d/server/utils
- ./server/schemas:/docker-entrypoint-initdb.d/server/schemas
- ./utils:/docker-entrypoint-initdb.d/utils
- ./.storage:/var/lib/cooky/data
- cooky_database:/var/lib/postgresql/data
volumes:
cooky_database:
name: cooky_database