This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.5 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
56
57
58
59
60
61
62
63
64
65
version: '3.7'
services:
mongodb:
image: mongo
container_name: fgo-db
environment:
- MONGO_PORT=${MONGO_PORT}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- ./mongo-volume:/data/db
ports:
- ${MONGO_PORT}:${MONGO_PORT}
networks:
- financial_go-net
backend:
build:
context: ./api/
dockerfile: Dockerfile
container_name: fgo-backend
environment:
- APP_ENV=${APP_ENV}
- FLASK_PORT=${FLASK_PORT}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
depends_on:
- mongodb
restart: always
volumes:
- ./api/:/api
ports:
- ${FLASK_PORT}:${FLASK_PORT}
networks:
- financial_go-net
frontend:
build:
context: ./client/
dockerfile: Dockerfile
container_name: fgo-frontend
environment:
- NODEJS_PORT=${NODEJS_PORT}
- NODE_ENV=${NODE_ENV}
restart: always
volumes:
- ./client/:/client
- node_modules:/client/node_modules
ports:
- ${NODEJS_PORT}:80
networks:
- financial_go-net
volumes:
node_modules:
networks:
financial_go-net:
driver: bridge