-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (84 loc) · 1.92 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
78
79
80
81
82
83
84
85
86
87
version: "3.7"
services:
db:
container_name: cloud-downloader-db
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_PASSWORD: pass1234
POSTGRES_USER: admin1234
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
networks:
- postgres
ports:
- "127.0.0.1:5432:5432"
pgadmin:
container_name: cloud-downloader-pgadmin
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/root/.pgadmin
networks:
- postgres
ports:
- "80:80"
rabbitmq:
container_name: cloud-downloader-rabbitmq
image: rabbitmq:alpine
restart: unless-stopped
ports:
- "127.0.0.1:15672:15672"
- "127.0.0.1:5672:5672"
networks:
- rabbitmq
cloud-downloader-consumer:
image: cloud-downloader-consumer:1.0
depends_on:
- db
- rabbitmq
environment:
- RABBITMQ_HOST=${RABBITMQ_HOST:-cloud-downloader-rabbitmq}
build:
context: .
target: cloud-downloader-consumer
dockerfile: docker/consumer/Dockerfile
networks:
- rabbitmq
volumes:
- "./data:/app/data"
restart: always
server:
container_name: cloud-downloader-server
image: cloud-downloader-server:1.0
depends_on:
- db
- rabbitmq
environment:
- RABBITMQ_HOST=${RABBITMQ_HOST:-cloud-downloader-rabbitmq}
- POSTGRES_HOST=${POSTGRES_HOST:-cloud-downloader-db}
build:
context: .
target: cloud-downloader-server
dockerfile: docker/server/Dockerfile
ports:
- "8888:8888"
networks:
- postgres
- rabbitmq
volumes:
- "./data:/app/data"
restart: always
networks:
postgres:
driver: bridge
rabbitmq:
driver: bridge
volumes:
postgres:
pgadmin: