-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (69 loc) · 1.48 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.9"
services:
omnecal-backend:
build:
context: .
dockerfile: ./Dockerfile
container_name: omnecal-backend
depends_on:
- db_1
- rabbitmq
- redis
ports:
- 8000:7777
volumes:
- ./:/app
restart: always
command: uvicorn main:app --host=0.0.0.0 --port 7777 --reload
rabbitmq:
image: rabbitmq:3.10.6-management
container_name: Queue
restart: always
ports:
- 5672:5672 # Broker Connection Port
- 15672:15672 # Broker Management UI
networks:
- default
redis:
image: redis:7.0.4
container_name: redis-cache
restart: always
ports:
- 6379:6379
volumes:
- cache:/redis-cache
networks:
- default
db_1:
image: postgis/postgis:10-3.2-alpine
container_name: omnecal_pg1
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=omnecal
ports:
- 5432:5432
volumes:
- pg_data1:/db_1/data
networks:
- default
pgadmin:
image: dpage/pgadmin4:4.23
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_LISTEN_PORT: 80
ports:
- 15432:80
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- db_1
volumes:
pg_data1:
cache:
pgadmin:
networks:
default:
name: omnecal-network