-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (56 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
57 lines (56 loc) · 1.19 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
networks:
- default
restart: unless-stopped
ports:
- 8081:5173
image: lenoreshop_frontend:development
container_name: lenoreshop_frontend_dev
volumes:
- ./frontend:/app
command: /bin/sh -c "npm run serve"
env_file:
- ./.env.dev
environment:
- NODE_ENV=development
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
command: /usr/src/app/start.dev.sh
volumes:
- ./backend:/usr/src/app
ports:
- 8001:8001
- 8002:8002
depends_on:
- db
networks:
- default
env_file:
- ./.env.dev
environment:
- DEBUG=1
image: lenoreshop_backend:development
container_name: lenoreshop_backend_dev
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env.dev
networks:
- default
container_name: lenoreshop_db_dev
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
volumes:
postgres_data:
static_volume:
media_volume: