-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.72 KB
/
docker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.72 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
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
ag-springboot:
build:
context: ./api
dockerfile: Dockerfile
image: alan10607/anonygram/api:latest
container_name: ag-springboot
ports:
- "8080:8080"
volumes:
- "~/docker/volume/anonygram/log:/log"
environment:
- ACTIVE=prod
- ES_HOST=ag-elasticsearch
- CORS_URL=https://localhost
depends_on:
- ag-elasticsearch
networks:
- proxy
command: ["/wait-for-it.sh", "ag-elasticsearch:9200", "--", "java","-jar","anonygram.jar"]
ag-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
container_name: ag-elasticsearch
user: "1000:1000"
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ELASTIC_PASSWORD=root
volumes:
- "~/docker/volume/elasticsearch/data:/usr/share/elasticsearch/data"
- "~/docker/volume/elasticsearch/logs:/usr/share/elasticsearch/logs"
networks:
- proxy
ag-react:
build:
context: ./web
dockerfile: Dockerfile
image: alan10607/anonygram/web:latest
container_name: ag-react
ports:
- "3000:3000"
environment:
CHOKIDAR_USEPOLLING: "true"
volumes:
- "~/docker/volume/react/node_modules:/usr/app/node_modules"
networks:
- proxy
ag-nginx:
image: nginx:1.17
container_name: ag-nginx
ports:
- "80:80"
- "443:443"
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./nginx/ssl:/etc/nginx/ssl"
- "~/docker/volume/nginx/log:/var/log/nginx"
depends_on:
- ag-springboot
- ag-react
networks:
- proxy
networks:
proxy:
name: ag-network