This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.55 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
version: '3'
services:
nginx:
container_name: nginxpinger
image: nginx:latest
restart: always
ports:
- "80:80"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- pinger-static:/static
depends_on:
- web
db:
container_name: dbpinger
image: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=pinger
- POSTGRES_PASSWORD=pinger
- POSTGRES_DB=pinger
expose:
- "5432"
mq:
container_name: mqpinger
image: rabbitmq:3
restart: always
hostname: rabbit
environment:
- RABBITMQ_DEFAULT_USER=pinger
- RABBITMQ_DEFAULT_PASS=pingerpass
ports:
- "5672:5672"
- "15672:15672"
web:
container_name: pingerapp
build: .
command: ["./wait-for-it.sh", "db:5432", "--", "./start_up_docker.sh"]
restart: always
volumes:
- pinger-static:/static
ports:
- "8000:8000"
environment:
- HOSTNAME=localhost
- DEBUG=True
- AMQP_HOST=mq
- AMQP_USER=pinger
- AMQP_PASS=pingerpass
- DB_NAME=pinger
- DB_USER=pinger
- DB_PASS=pinger
- DB_SERVICE=db
- DB_PORT=5432
depends_on:
- mq
- db
volumes:
pinger-static:
postgres_data: