-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.35 KB
/
docker-compose.yml
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
version: '3.5'
services:
db:
image: mysql
env_file:
- .env
environment:
- MYSQL_USERNAME
- MYSQL_DATABASE
- MYSQL_ROOT_PASSWORD
volumes:
- db-data:/var/lib/mysql
ports:
- "${MYSQL_PORT}:${MYSQL_PORT}"
scraper:
depends_on:
- db
build: ./scraper
volumes:
- ./scraper:/usr/src/app
command: python main.py
env_file:
- .env
backend:
depends_on:
- db
build: ./server
volumes:
- ./server:/usr/src/app
command: npm run start:dev
env_file:
- .env
environment:
- PORT=${BACKEND_PORT}
- BACKEND_URL=http://localhost:${BACKEND_PORT}
- FRONTEND_URL=http://localhost:${FRONTEND_PORT}
- FRONTEND_DOMAIN=${DOMAIN}
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
frontend:
build: ./client
command: npm start
env_file:
- .env
volumes:
- ./client:/app
environment:
- PORT=${FRONTEND_PORT}
- REACT_APP_BACKEND_URL=http://localhost:${BACKEND_PORT}
- REACT_APP_SESSION_COOKIE_NAME=${SESSION_COOKIE_NAME}
- REACT_APP_DOMAIN=${DOMAIN}
- REACT_APP_FRONTEND_URL=http://localhost:${FRONTEND_PORT}
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
stdin_open: true
volumes:
db-data:
driver: local