-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
81 lines (79 loc) · 1.82 KB
/
docker-compose-dev.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.9"
services:
# Mongo DB Container
db:
container_name: mongo-db-dev
image: mongo:6.0
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGO_INITDB_ROOT_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
volumes:
- mongodb_data_container_dev:/data/db
networks:
- db-dev-network
restart: always
# Backend Container
backend:
container_name: back-dev
image: backend:dev
environment:
- DB_CONNECTION_STRING
- JWT_SECRET
- FORGET_PASSWORD_SECRET
- SU_PASS
- SU_EMAIL
- SU_USERNAME
- EMAIL_USER
- EMAIL_PASS
- GOOGLE_CREDIENTIALS_CLIENT_ID_flutter_android
- GOOGLE_CREDIENTIALS_CLIENT_ID_flutter_web
- GOOGLE_CREDIENTIALS_CLIENT_ID_web
networks:
- db-dev-network
depends_on:
- db
restart: always
# Static Content
static-resources:
container_name: resources-dev
image: nginx:latest
restart: always
volumes:
- backend_assets:/usr/share/nginx/html/assets
# Frontend Container
frontend:
container_name: front-dev
image: frontend:dev
environment:
- REACT_APP_BASE_URL
- REACT_APP_GOOGLE_ID
- REACT_APP_GOOGLE_SECRET
- REACT_APP_GITHUB_ID
- REACT_APP_GITHUB_SECRET
restart: always
depends_on:
- backend
# Cross Platform Container
crossplatform:
container_name: cross-dev
image: cross:dev
environment:
- BASE_URL
- MEDIA_URL
restart: always
depends_on:
- backend
testing:
image: testing:dev
container_name: testing-dev
command: "--browser chrome --config video=false"
depends_on:
- frontend
volumes:
- test_results:/e2e/results
volumes:
mongodb_data_container_dev:
test_results:
backend_assets:
networks:
db-dev-network: