-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
42 lines (41 loc) · 958 Bytes
/
docker-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
version: "3.8"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
ports:
- "5000:5000"
volumes:
- ./backend:/app
- /app/node_modules
- ./backend/public/event-preview/:/app/public/event-preview/
env_file:
- ./backend/config/.env
command: nodemon index.js
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- "80:80"
- "443:443"
restart: unless-stopped
db-postgres:
build:
context: ./postgres
dockerfile: Dockerfile
environment:
POSTGRES_DB: "taxi_all_drive"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "#15Gjcn3128Uh.#"
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
restart: always
volumes:
postgres_data: