-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.43 KB
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
#version: '3.8'
# see here https://docs.docker.com/compose/compose-file/compose-versioning/
version: '3.1'
services:
be:
build:
context: ./be
dockerfile: Dockerfile
#~dk getting rid of this because this hides all the files in /usr/src/app since I didn't specify
# the local folder on the host as a shared folder with virtualbox! Also, I have no idea why we
# need a shared volume here..
#volumes:
# - './services/users:/usr/src/app'
ports:
- 5004:5000
environment:
- FLASK_ENV=development
- DATABASE_URL=mongodb+srv://admin:admin@tweets.8ugzv.mongodb.net/tweets?retryWrites=true&w=majority
- DATABASE_TEST_URL=mongodb://localhost:27017/
networks:
- backend
fe:
stdin_open: true
build:
context: ./fe
dockerfile: Dockerfile
args:
- NODE_ENV=development
# - REACT_APP_BE_NETWORK=http://localhost
# - REACT_APP_BE_PORT=5004
- REACT_APP_API_SERVICE_URL=http://localhost:5000
# ~dk same problem here..
#volumes:
#- './fe:/usr/src/app'
#- '/usr/src/app/node_modules'
ports:
- 3007:80
depends_on:
- be
# specifies frontend and backend as the networks the fe service will have access to
networks:
- frontend
- backend
# bridge networks to allow the containers to communicate with each other
networks:
frontend:
driver: bridge
backend:
driver: bridge