-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.3 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'
services:
front:
build:
context: .
dockerfile: ./docker/front/Dockerfile
container_name: react-front
tty: true
volumes:
- ./front:/app/front
command: sh -c "cd /app/front && npm install && npm start"
ports:
- 3000:3000
server:
build:
context: .
dockerfile: ./docker/server/Dockerfile
container_name: go-server
env_file:
- docker-compose.env
ports:
- 8000:8000
tty: true
volumes:
- ./server:/go/src/github.com/Doer-org/hack-camp_vol4_2022
depends_on:
- db
db:
container_name: psql-db
build: ./docker/db
ports:
- 5432:5432
volumes:
- ./db/init:/docker-entrypoint-initdb.d
- ./db/data:/var/lib/postgresql/data
env_file:
- docker-compose.env
restart: always
# scraping:
# container_name: python-scraping
# build: ./docker/scraping
# volumes:
# - ./scraping:/root/src
# env_file:
# - docker-compose.env
# depends_on:
# - db
# command: python main.py
data:
container_name: python-data
build: ./docker/data
volumes:
- ./data:/root/src
env_file:
- docker-compose.env
depends_on:
- db
command: python main.py