Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (63 loc) · 1.6 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
70 lines (63 loc) · 1.6 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
68
69
70
version: '3.4'
services:
rabbitMQ:
container_name: RabbitMQ
image: rabbitmq:3.10-rc-management-alpine
ports:
- "5672:5672"
- "15672:15672"
mysql_server:
container_name: mysql_server
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: "password"
mongodb:
container_name: mongodb
image: mongo
ports: [ "27017:27017" ]
environment:
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_INITDB_ROOT_PASSWORD: "1234"
volumes:
- "./scripts/db.init.sql:/docker-entrypoint-initdb.d/db.init.sql"
createbook:
build: createbook
container_name: createbook
restart: unless-stopped
ports: [ "8080:8080" ]
volumes:
- ./createbook:/app:cached,ro
- ./createbook/src:/app/src:cached,ro
environment:
PORT: "8080"
env_file: [ ./createbook/.env ]
depends_on: [ "mysql_server" ]
listbooks:
build: listbooks
container_name: listbooks
restart: unless-stopped
ports: [ "9090:9090" ]
volumes:
- ./listbooks:/app:cached,ro
- ./listbooks/src:/app/src:cached,ro
environment:
PORT: "9090"
env_file: [ ./listbooks/.env ]
depends_on: [ "mongodb" ]
frontend:
build: frontend
container_name: frontend
ports: [ "3000:3000" ]
tty: true
volumes:
- ./frontend:/frontend
- ./frontend/public:/frontend/public:cached,ro
- ./frontend/src:/frontend/src:cached,ro
depends_on: [ "listbooks" ]
adminer:
image: adminer
restart: always
ports:
- 8000:8000