forked from slant14/Database-Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (48 loc) · 1.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (48 loc) · 1.07 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
version: '3.9'
services:
backend:
build: ./backend/
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/core:/app
ports:
- "8000:8000"
environment:
- SECRET_KEY=test
- DEBUG=True
frontend-37:
build: ./frontend-37
ports:
- "5173:5173"
volumes:
- ./frontend-37:/app
# - /app/node_modules
environment:
VITE_PROD: ${PROD}
postgres:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./postgres_data:/var/lib/postgresql/data
mongodb:
image: mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- ./mongo_data:/data/db
# mysql:
# image: mysql:8.0
# ports:
# - "3306:3306"
# environment:
# MYSQL_USER: ${MYSQL_USER}
# MYSQL_PASSWORD: ${MYSQL_PASSWORD}
# volumes:
# - ./mysql_data:/var/lib/mysql