-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
32 lines (28 loc) · 991 Bytes
/
docker-compose.dev.yml
File metadata and controls
32 lines (28 loc) · 991 Bytes
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
version: '3.7'
services:
application:
image: node:19-alpine
user: node:node
environment:
- DATABASE_URL=postgresql://etuutt:abcdef@database/etuutt
- JWT_SECRET='super-secret'
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
ports:
- "5555:5555"
# We use db push for now because we don't have any migrations yet, prototyping the database
command: sh -c "npm install --loglevel info && npx prisma db push --accept-data-loss && (npx prisma studio &) && npm run start:dev"
# The following command is used to run migrations instead of db push
# command: sh -c "npm install --loglevel info && npx prisma migrate dev && (npx prisma studio &) && npm run start:dev"
database:
environment:
- POSTGRES_USER=etuutt
- POSTGRES_PASSWORD=abcdef
- POSTGRES_DB=etuutt
database-test:
image: postgres
environment:
- POSTGRES_USER=etuutt
- POSTGRES_PASSWORD=abcdef
- POSTGRES_DB=etuutt