-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (66 loc) · 1.42 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
version: "3.8"
services:
nginx:
image: nginx:latest
container_name: webserver
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
networks:
- webnet
depends_on:
- database
- server
- client
database:
image: mongo:latest
container_name: database
expose:
- "27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=123456
networks:
- webnet
volumes:
- data:/data/db
server:
build:
context: server/
dockerfile: Dockerfile
image: sat0urn/spring-server:v1.0
container_name: server
expose:
- "8080"
environment:
- JWT_SECRET_KEY_ENV=5f3b36204951c177117fb5dadbde7f52b38e8688e00047cb1fb83321506b0cd2
- CLIENT_APP_ADDRESSES_ENV=http://localhost
- MONGO_DB_USERNAME=root
- MONGO_DB_PASSWORD=123456
- SPRING_MAIL_USERNAME=zeyin03@gmail.com
- SPRING_MAIL_PASSWORD=jlfdqdqcguruxelq
networks:
- webnet
depends_on:
- database
client:
build:
context: client/
dockerfile: Dockerfile
image: sat0urn/react-client:v1.0
container_name: client
expose:
- "3000"
environment:
- VITE_SERVER_ADDRESS=http://localhost/api
- VITE_CLIENT_HOST=localhost
- VITE_CLIENT_PROTOCOL=ws
networks:
- webnet
depends_on:
- server
volumes:
data:
networks:
webnet: