-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.03 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
version: "3"
services:
queue:
build:
context: docker/rabbitmq
container_name: service-bus-skeletone-queue
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_VM_MEMORY_HIGH_WATERMARK: 512MiB
RABBITMQ_ERLANG_COOKIE: f6fAjy5yes
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin123
db:
image: postgres:9.6
container_name: service-bus-skeletone-db
restart: always
environment:
POSTGRES_PASSWORD: 123456789
POSTGRES_USER: demo
ports:
- 5432:5432
volumes:
- ./docker/postgresql/schema.sql:/docker-entrypoint-initdb.d/init.sql
app:
build:
context: docker/application
container_name: service-bus-skeletone-consumer
working_dir: /var/www
restart: always
volumes:
- ./:/var/www
environment:
TRANSPORT_CONNECTION_DSN: amqp://admin:admin123@queue
DATABASE_CONNECTION_DSN: pgsql://demo:123456789@db/demo
links:
- queue:queue
- db:db
command: ["/tools/boot"]