-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (38 loc) · 832 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
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
services:
backend:
build: ./backend
command: sh -c "npx prisma db push && node src/app.js"
image: wenozaric/backend:v1.0.2
ports:
- '5005:5005'
container_name: 'tracker-backend'
env_file:
- .env
depends_on:
- postgres
volumes:
- ./.env:/app/.env
postgres:
image: postgres:15-alpine
container_name: 'tracker-db'
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- '5432:5432'
frontend:
image: wenozaric/frontend:v1.0.2
build: ./frontend
container_name: 'tracker-frontend'
ports:
- '80:80'
depends_on:
- backend
volumes:
postgres_data: