-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.04 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
version: '3.8'
services:
api:
build: .
ports:
- 4000:4000
networks:
- app-network
volumes:
- ./src/:/app/src/
- .env.docker/:/app/.env
restart: unless-stopped
depends_on:
- mongo
- redis
- postgres
mongo:
image: mongo:6.0.3
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: example
volumes:
- dbdata:/data/mongodb
restart: unless-stopped
networks:
- app-network
postgres:
image: postgres:14.1-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: example
ports:
- '5432:5432'
volumes:
- dbdata:/data/postgresql
networks:
- app-network
redis:
image: "redis:7.0.5"
ports:
- "6379:6379"
restart: unless-stopped
networks:
- app-network
networks:
app-network:
name: app-network
driver: bridge
volumes:
dbdata: