-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
42 lines (40 loc) · 929 Bytes
/
docker-compose-dev.yaml
File metadata and controls
42 lines (40 loc) · 929 Bytes
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
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: contentflow-api
env_file:
- .env
ports:
- "${API_PORT}:${API_PORT}"
command: sh -c "npm install && npm run dev"
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: always
depends_on:
- database
- rabbitmq
rabbitmq:
image: rabbitmq:4.1.1-management-alpine
container_name: contentflow-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASS}
database:
image: postgres:latest
container_name: contentflow-db
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: