-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 881 Bytes
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
services:
postgres:
container_name: tjstar_postgres
image: postgres:latest
networks:
- tjstar_net
expose:
- "5432"
environment:
- POSTGRES_DB=tjstar
- POSTGRES_USER=tjstar
- POSTGRES_PASSWORD=pwd
volumes:
- pgdata:/var/lib/postgresql
django:
container_name: tjstar
image: tjstar
build:
context: .
dockerfile: Dockerfile
entrypoint:
[
"/bin/sh",
"-c",
"git config --global --add safe.directory /tjstar && \
/bin/sh entrypoint.sh"
]
ports:
- "8000:8000"
networks:
- tjstar_net
volumes:
- ./:/tjstar
networks:
tjstar_net:
driver: bridge
volumes:
pgdata:
name: tjstar-pgdata