-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.staging.yml
63 lines (56 loc) · 1.12 KB
/
docker-compose.staging.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
56
57
58
59
60
61
62
version: "3"
volumes:
mongo_data: {}
mongo_backup: {}
node_logs: {}
media_data: {}
networks:
app-network:
driver: bridge
services:
nuxt:
restart: always
container_name: drewdru_node_stage
build:
context: .
dockerfile: compose/node/Dockerfile
env_file:
- .env
volumes:
- /home/app/drewdru/node_modules
- node_logs:/home/app/drewdru/logs
- media_data:/home/app/drewdru/uploads
depends_on:
- mongo
- redis
networks:
- app-network
# tty: true
mongo:
restart: always
image: mongo:4.2
container_name: drewdru_mongo_stage
env_file:
- .env
command: mongod --storageEngine wiredTiger
volumes:
- mongo_data:/data/db
- mongo_backup:/data/backup
networks:
- app-network
redis:
image: redis:5.0.12-alpine
container_name: drewdru_redis_local
networks:
- app-network
nginx:
restart: always
build: ./compose/nginx
container_name: drewdru_nginx_stage
depends_on:
- nuxt
ports:
- "80:80"
- "443:443"
networks:
- app-network