-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (43 loc) · 1.14 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
version: "3"
services:
app:
build: .
links:
- postgres
- redis
ports:
- 8000:8000
volumes:
- .:/application
- ~/.ssh:/root/.ssh
- server-logs:/application/logs
- server-site-packages:/usr/local/lib/python3.8/site-packages
- server-usr-local-bin:/usr/local/bin
command: python server/manage.py runserver 0:8000
working_dir: /application
env_file:
- ./server/config/.env
entrypoint: /application/script/entrypoint.sh
postgres:
image: postgres:12
env_file:
- ./server/config/.env
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- 5432:5432
volumes:
- .:/shared
- postgres-data:/var/lib/postgresql/data
- ./db_scripts:/docker-entrypoint-initdb.d/
redis:
image: "redis:latest"
volumes:
server-site-packages:
driver: local
postgres-data:
driver: local
server-logs:
driver: local
server-usr-local-bin:
driver: local