-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.51 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
# Express App
# app:
# restart: unless-stopped
# build:
# context: ./server
# dockerfile: Dockerfile
# ports:
# - "3000:3000"
# environment:
# DATABASE_URL: ${DATABASE_URL}
# depends_on:
# - db
# volumes:
# - ./server/src:/app/src
# - ./server/prisma:/app/prisma
# - ./server/package.json:/app/package.json
# - /app/node_modules
migrate-dev:
build:
context: ./server
dockerfile: Dockerfile
args:
NPM_LOG_LEVEL: notice
command:
- /bin/sh
- -c
- npx prisma migrate dev --name migrationdata
working_dir: /app
tty: true
stdin_open: true
volumes:
- ./docker/supabase/volumes/db/migration:/app/prisma/migrations
- ./server/prisma:/app/prisma
environment:
DATABASE_URL: ${DATABASE_URL}
depends_on:
- db
db:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- ./server/src:/app/src
- ./server/package.json:/app/package.json
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4:2024-07-24-1
depends_on:
- db
ports:
- "53603:53603"
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: postgres
PGADMIN_LISTEN_PORT: 53603
restart: unless-stopped
volumes:
postgres-data: