-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (63 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
67 lines (63 loc) · 1.25 KB
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
64
65
66
67
version: "3.9"
services:
# web:
# depends_on:
# - postgres
# build:
# context: ./Tourism
# dockerfile: Dockerfile
# image: tourism:v1
# environment:
# - PORT=8020
# env_file:
# - Tourism/.env
# ports:
# - "8000:8020"
# command: sh -c "chmod +x /app/collectstatic.sh && sh /app/collectstatic.sh && chmod +x /app/migrate.sh && sh /app/migrate.sh && /app/entrypoint.sh"
# volumes:
# - staticfiles:/app/staticfiles/
postgres:
image: postgres
# restart: always
env_file:
- Tourism/.env
expose:
- 5432
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- backend
redis:
image: redis
# restart: always
expose:
- 6379
ports:
- "6379:6379"
volumes:
- redis_data:/data
entrypoint: redis-server --appendonly yes --port 6379
networks:
- backend
postgres-admin:
image: dpage/pgadmin4
ports:
- 8080:80
env_file:
- Tourism/.env
networks:
- backend
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- postgres
volumes:
postgres_data:
redis_data:
pgadmin:
# staticfiles:
# external: true
networks:
backend: