-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·147 lines (135 loc) · 4.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3.1"
services:
mercure:
image: dunglas/mercure
environment:
- JWT_KEY=!ChangeMe!
- DEMO=1
- ALLOW_ANONYMOUS=1
- HEARTBEAT_INTERVAL=30s
- ADDR=:3003
- CORS_ALLOWED_ORIGINS=*
- PUBLISH_ALLOWED_ORIGINS=http://mercure:3003,http://localhost:3000,http://localhost:3050
ports:
- "3003:3003"
volumes:
- dev-certs:/certs:ro,nocopy
mongo:
image: mongo
ports:
- 27018:27018
command: mongod --port 27018
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: dbpayment
volumes:
- mongo-data:/data/db
mongo-express:
image: mongo-express
depends_on:
- mongo
ports:
- 127.0.0.1:8088:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_PORT: 27018
server-psp:
image: node:alpine
volumes:
- "./server-psp:/home/node/app:rw,consistent"
working_dir: "/home/node/app"
environment:
PSP_SECRET: "MonSuperPspSecretLol"
command: "npm run start"
ports:
- 127.0.0.1:3005:3005
server:
image: node:alpine
volumes:
- "./server:/home/node/app:rw,consistent"
working_dir: "/home/node/app"
environment:
MONGODB_USER: "root"
MONGODB_PASS: "password"
MONGODB_DBNAME: "dbpayment"
DATABASE_URL: "postgres://user:password@postgres:5432/dbpayment"
JWT_SECRET: "MyBestSecret"
MAILER_USER: "[email protected]"
MAILER_PASS: "paypluas2020"
BASE_URL: "http://localhost:3050"
PSP_SECRET: "MonSuperPspSecretLol"
MERCURE_PUBLISH_URL: http://127.0.0.1:3003/hub
MERCURE_JWT_SECRET: "!ChangeMe!"
depends_on:
- postgres
- pgadmin
- mongo-express
- server-psp
- server-merchant
- mercure
# - client
command: "npm run dev"
ports:
- 127.0.0.1:3050:3050
server-merchant:
image: node:alpine
volumes:
- "./server-marchand:/home/node/app:rw,consistent"
working_dir: "/home/node/app"
environment:
MONGODB_USER: "root"
MONGODB_PASS: "password"
MONGODB_DBNAME: "dbmerchant"
BASE_URL: "http://localhost:3050"
depends_on:
- mongo-express
command: "npm run start"
ports:
- 127.0.0.1:3001:3001
client:
build: "./docker"
volumes:
- "./client:/home/node/app"
working_dir: "/home/node/app"
command: "yarn start"
tty: true
stdin_open: true
ports:
- 127.0.0.1:3000:3000
environment:
REACT_APP_BACK_OFFICE_URL: http://localhost:3050/
REACT_APP_MERCURE_HUB: http://localhost:3003/.well-known/mercure
REACT_APP_MERCURE_JWT_SECRET: "!ChangeMe!"
postgres:
container_name: postgres
image: "postgres:12-alpine"
volumes:
- "db-data:/var/lib/postgresql/data:consistent"
- "postgres:/data/postgres"
ports:
- "5432:5432"
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=dbpayment
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "admin"
volumes:
- pgadmin:/root/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
restart: unless-stopped
volumes:
postgres:
mongo-data:
pgadmin:
db-data:
dev-certs: {}