-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.45 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
55
56
57
58
59
60
61
62
63
64
# X-COMMON-VARIABLES
x-backend-environment: &backend-environment
SECRET_KEY: ${SECRET_KEY}
x-frontend-environment: &frontend-environment
REACT_APP_PUBLIC_KEY: ${REACT_APP_PUBLIC_KEY}
REACT_APP_WEBHOOK_URL: ${REACT_APP_WEBHOOK_URL}
REACT_APP_BACKEND_HOST: ${REACT_APP_BACKEND_HOST}
x-backend-networks: &backend-networks
- backend_network
x-backend-ports: &backend-ports
- 5000:5000
version: '3.8'
services:
# Backend Services
node:
container_name: fintoc_node
build:
dockerfile: Dockerfile
context: ./node
ports: *backend-ports
environment:
<<: *backend-environment
networks: *backend-networks
python:
container_name: fintoc_python
build:
dockerfile: Dockerfile
context: ./python
ports: *backend-ports
environment:
<<: *backend-environment
networks: *backend-networks
ruby:
container_name: fintoc_ruby
build:
dockerfile: Dockerfile
context: ./ruby
ports: *backend-ports
environment:
<<: *backend-environment
networks: *backend-networks
# Frontend services
frontend:
container_name: fintoc_frontend
build:
dockerfile: Dockerfile
context: ./frontend
ports:
- 3000:3000
environment:
<<: *frontend-environment
networks:
- backend_network
- frontend_network
networks:
frontend_network:
name: frontend_network
driver: bridge
backend_network:
name: backend_network
driver: bridge