-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.25 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
version: '3.8'
services:
twilio_api:
container_name: twilio_api
image: twilio/api:latest
build:
context: packages/api
dockerfile: Dockerfile
depends_on:
- twilio_db
env_file:
- packages/api/.env.docker
environment:
FASTIFY_PORT: 1337
FASTIFY_ADDRESS: 0.0.0.0
networks:
- twilio-network
ports:
- 1337:1337
restart: always
volumes:
- ./packages/api:/usr/src/app
- /usr/src/app/node_modules
twilio_ui:
container_name: twilio_ui
image: twilio/ui:latest
build:
context: packages/ui
dockerfile: Dockerfile
args:
VITE_BACKEND_URL: ${VITE_BACKEND_URL:-http://twilio_api:1337}
depends_on:
- twilio_api
env_file:
- packages/ui/.env.docker
networks:
- twilio-network
ports:
- 3000:80
restart: always
volumes:
- ./packages/ui:/usr/src/app
- /usr/src/app/node_modules
twilio_db:
container_name: twilio_db
image: mongo:4.2.22
restart: always
env_file:
- .env.db
networks:
- twilio-network
ports:
- 27017:27017
volumes:
- .tmp/mongo:/data/db
- .docker/mongo-entrypoint:/docker-entrypoint-initdb.d
networks:
twilio-network: