-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
70 lines (68 loc) · 2.01 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
66
67
68
69
version: '3'
services:
db:
container_name: admin_cxp_db
image: postgres:13-alpine
environment:
- POSTGRES_DB=cxp_dev
- POSTGRES_PORT=5432
- POSTGRES_USER=cxp
- POSTGRES_PASSWORD=token.01
ports:
- "5432:5432"
emulator_admin:
container_name: admin_cxp_emulator_admin
image: frfernandezdev/firebase-emulators:latest
environment:
- FIREBASE_UI_ENABLED=true
- FIREBASE_PROJECT=cxp-dev-admin
ports:
- "9000:9000"
- "9099:9099"
emulator_web:
container_name: admin_cxp_emulator_web
image: frfernandezdev/firebase-emulators:latest
environment:
- FIREBASE_UI_ENABLED=true
- FIREBASE_AUTH_PORT=9098
- FIREBASE_PROJECT=cxp-dev
ports:
- "9001:9000"
- "9098:9098"
api:
container_name: admin_cxp_server
image: conexperto/server:latest
environment:
- FLASK_APP=wsgi:create_wsgi()
- FLASK_RUN_PORT=5000
- FLASK_ENV=development
- FLASK_DEBUG=True
- TESTING=False
- DATABASE_URL=postgresql+psycopg2://cxp:token.01@admin_cxp_db:5432/cxp_dev
- FIREBASE_ADMIN_SDK_FILE=cxp-dev-admin-adminsdk.json
- FIREBASE_WEB_SDK_FILE=cxp-dev-adminsdk.json
- FIREBASE_AUTH_EMULATOR_ADMIN_HOST=admin_cxp_emulator_admin:9099
- FIREBASE_AUTH_EMULATOR_WEB_HOST=admin_cxp_emulator_web:9098
ports:
- "5000:5000"
depends_on:
- db
- emulator_admin
- emulator_web
admin:
container_name: cxp_admin
build: .
environment:
- NODE_ENV=development
- REACT_APP_NAME=admin
- REACT_APP_EMULATOR_ADMIN_HOST=http://localhost:9099
- REACT_APP_EMULATOR_WEB_HOST=http://localhost:9098
- REACT_APP_API_URL=http://localhost:5000/api/v1/
- CHOKIDAR_USEPOLLING=true
volumes:
- .:/srv/app
- /srv/app/node_modules
ports:
- "3001:3000"
depends_on:
- api