-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
60 lines (58 loc) · 1.18 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
version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
networks:
- default
restart: unless-stopped
ports:
- 8081:5173
image: lenorecraft_frontend:development
container_name: lenorecraft_frontend_dev
volumes:
- ./frontend:/app
environment:
- NODE_ENV=development
- TZ=${TIMEZONE}
command: /bin/sh -c "npm run serve"
env_file:
- ./.env.dev
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
command: /usr/src/app/start.dev.sh
env_file:
- ./.env.dev
volumes:
- ./backend:/usr/src/app
- ./backups:/backups
environment:
- DEBUG=1
ports:
- 8001:8001
- 8002:8002
depends_on:
- db
networks:
- default
image: lenorecraft_backend:development
container_name: lenorecraft_backend_dev
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.dev.db
networks:
- default
container_name: lenorecraft_db_dev
environment:
- TZ=UTC
volumes:
postgres_data:
static_volume:
media_volume:
postgres_bkp: