generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (59 loc) · 1.42 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
63
# version: "3.9"
# services:
# node:
# # build: ./utils/gdocs2md/.
# build: .
# ports:
# - "3000:3000"
# command: ls /node/node_modules
# volumes:
# - .:/node
# - /node/node_modules:/node/node_modules
services:
# node:
# image: hfla-gdocs2md-node
# container_name: hfla-gdocs2md-node
# build:
# context: .
# dockerfile: Dockerfile-node
# volumes:
# # https://stackoverflow.com/a/32785014/232619
# - .:/app
# - /app/node_modules
# command: node ./gdocs2md/scripts/start-express.js
# ports:
# - 3000:3000
django:
image: kb-web-image
container_name: kb-web
build:
dockerfile: ./Dockerfile
env_file:
- ./django_root/.env.docker
volumes:
# https://stackoverflow.com/a/32785014/232619
- ./django_root/:/usr/src/django_root
command:
- sh
- -c
- |
cd /usr/src/django_root
find . -name "*.sh" -exec chmod +x {} \;
ls -a
cat .env.docker
./start-docker.sh
ports:
- 8000:8000
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_HOST=localhost"
ports:
- 5432:5432
volumes:
postgres_data: