-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.11 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
version: "3"
services:
api:
image: node:18-alpine
command: sh -c "npm install && npm run start:dev"
ports:
- ${API_PORT}:${API_PORT}
depends_on:
- db
- rabbitmq
env_file:
- ./.env
working_dir: /app
volumes:
- ./:/app
links:
- db:${TYPEORM_HOST}
db:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- ${TYPEORM_PORT}:3306
environment:
MYSQL_ROOT_PASSWORD: ${TYPEORM_PASSWORD}
MYSQL_DATABASE: ${TYPEORM_DATABASE}
volumes:
- db-data:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8080:8080
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: "${RABBITMQ_DEFAULT_USER}"
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_DEFAULT_PASS}"
volumes:
- ~/.docker-conf/rabbitmq/data/:/log/rabbitmq/data
- ~/.docker-conf/rabbitmq/log/:/log/rabbitmq/log
volumes:
db-data: