-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
60 lines (54 loc) · 1.24 KB
/
docker-compose.prod.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
version: '3.9'
services:
nginx:
container_name: ui_nginx
restart: always
build:
context: .
dockerfile: nginx/Dockerfile
environment:
BACKEND_API: api:4000
NGINX_PORT: 80
NGINX_HTTPS_PORT: 443
FORCE_HTTPS: 'false'
VITE_SENTRY_API: https://[email protected]/6288957
ports:
- 80:80
- 443:443
depends_on:
- api
networks:
- mynet
api:
container_name: api_express
build:
context: ./api
dockerfile: prod.Dockerfile
depends_on:
- mongodb
ports:
- 4000
restart: always
environment:
NODE_ENV: production
SECRET: e42d8dd28adf34fc489044d5aa21e5166f22a6ef
MONGODB_URI: mongodb://mongodb:27017/
MONGODB_DB_MAIN: portfolio_db
SENTRY_API: https://[email protected]/6288993
PORT: 4000
networks:
- mynet
mongodb:
container_name: mongodb
image: mongo:latest
restart: always
environment:
MONGO_INITDB_DATABASE: portfolio_db
ports:
- 27017
volumes:
- ./scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- mynet
networks:
mynet: