-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 1.99 KB
/
docker-compose.yml
File metadata and controls
80 lines (75 loc) · 1.99 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# db:
# image: mysql:8.0
# container_name: portfolio-db
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: portfolio
# ports:
# - 3307:3306
# volumes:
# - portfolio-data:/var/lib/mysql
# healthcheck:
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
# timeout: 20s
# retries: 10
backend:
build: ./backend
ports:
- 4000:4000
volumes:
- ./backend/src:/app/src
- ./backend/translations:/app/translations
- ./backend/backups:/app/backups
- ./backend/doc/cv:/app/doc/cv
- ./backend/uploads/images:/app/uploads/images
- ./backend/uploads/videos:/app/uploads/videos
# - ./backend/node_modules:/app/node_modules
environment:
- WDS_SOCKET_HOST=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
env_file:
- ./backend/.env
# depends_on:
# db:
# condition: service_healthy
frontend:
# build: ./frontend
build:
context: ./frontend
args:
NEXT_PUBLIC_API_TOKEN: ${NEXT_PUBLIC_API_TOKEN}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
NEXT_PUBLIC_JWT_SECRET: ${NEXT_PUBLIC_JWT_SECRET}
JWT_SECRET: ${JWT_SECRET}
ports:
- 3000:3000
volumes:
- ./frontend/src:/app/src
environment:
- WDS_SOCKET_HOST=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
- NEXT_PUBLIC_IMAGE_URL=http://localhost:8000
- NEXT_PUBLIC_API_TOKEN=${NEXT_PUBLIC_API_TOKEN}
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- API_URL=${API_URL}
- NODE_ENV=development
env_file:
- ./frontend/.env
depends_on:
- backend
# nginx:
# image: nginx:1.21.3
# depends_on:
# - frontend
# restart: always
# ports:
# - ${GATEWAY_PORT:-8000}:80
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf
# - ./logs:/var/log/nginx-dev
volumes:
portfolio-data:
portfolio-data-test: