-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.dev.yaml
104 lines (96 loc) · 2.19 KB
/
docker-compose.local.dev.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3.8"
services:
caddy_reverse_proxy:
container_name: caddy_reverse_proxy_container
image: caddy:alpine
restart: always
ports:
- 80:80
- 443:443
network_mode: "host"
volumes:
- ./backend/caddy/Caddyfile:/etc/caddy/Caddyfile
- ./backend/caddy/static:/code/static
- ./backend/caddy/logs:/code/logs
- ./backend/caddy/data:/data/caddy
# - caddy_data:/data
- caddy_config:/config
# create container for building nest app
nimbus-api:
image: nimbus/api
container_name: nimbus-api
ports:
- "3000:3000"
env_file:
- ./backend/api.env
build:
context: ./backend
dockerfile: build_api.Dockerfile
nimbus-frontend:
image: nimbus/frontend
container_name: nimbus_frontend_container
ports:
- "4000:4000"
build:
context: ./frontend
dockerfile: build_frontend.Dockerfile
postgres:
image: postgres
container_name: postgres_container
restart: always
ports:
- 5432:5432
env_file:
- ./backend/postgres.env
volumes:
- postgres_vol:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
container_name: postgres_gui_container
restart: always
ports:
- "8888:80"
env_file:
- ./backend/postgres_gui.env
volumes:
- pgadmin_vol:/var/lib/pgadmin
mongo:
image: nimbus/mongo
# image: mongo:7.0.5
container_name: mongo_container
env_file:
- ./backend/mongo.env
build:
context: ./backend
dockerfile: ./rs.Dockerfile
# restart: always
ports:
- 27017:27017
volumes:
- mongo_vol1:/etc/mongo/keys
- mongo_vol2:/var/lib/mongo
# command: ["mongod", "--replSet", "rs0"]
command: ["start.sh"]
mongo-express:
image: mongo-express
container_name: mongo_gui_container
restart: always
ports:
- 8081:8081
env_file:
- ./backend/mongo_gui.env
nimbus-redis:
image: redis:7.0.14
container_name: nimbus_redis_container
ports:
- 6379:6379
volumes:
- redis_vol:/data
volumes:
pgadmin_vol:
postgres_vol:
redis_vol:
# caddy_data:
caddy_config:
mongo_vol1:
mongo_vol2: