-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (51 loc) · 1.12 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
version: '3.2'
services:
db:
restart: always
image: postgres:13
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
db-admin:
restart: always
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- target: 80
published: 8000
protocol: tcp
mode: host
web:
image: babs:latest
#build: build/
command: sh /app/babsproj/entrypoint.sh
volumes:
- .:/app/
ports:
- target: 80
published: 80
protocol: tcp
mode: host
depends_on:
- db
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
redis:
image: redis:latest
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
ports:
- target: 6379
published: 6379
protocol: tcp
mode: host
volumes:
postgres_data: