-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 866 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 866 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
43
44
45
46
47
version: "3.8"
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
ENV_VARIABLE: ${ENV_VARIABLE}
NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE}
restart: always
volumes:
- ./:/app/
- /app/node_modules
- /app/.next
ports:
- "${PORT}:${PORT}"
environment:
DB_LOCAL_URL: mongodb://mongo:27017/denizpaz
depends_on:
- mongo
networks:
- MONGO
mongo:
container_name: mongo
image: mongo:latest
volumes:
- type: volume
source: MONGO_DATA
target: /data/db
- type: volume
source: MONGO_CONFIG
target: /data/configdb
ports:
- "27017:27017"
networks:
- MONGO
networks:
MONGO:
name: MONGO
volumes:
MONGO_DATA:
name: MONGO_DATA
MONGO_CONFIG:
name: MONGO_CONFIG