forked from Mikaelemmmm/go-zero-looklook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.26 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
version: '3'
######## app下api+rpc , Before starting this project, start the environment that the project depends on docker-compose-env.yml #######
services:
#前端网关nginx-gateay (只代理looklook,admin-api不在这里做代理)
# Front-end gateway nginx-gateway (Only agent looklook,admin-api Do not be an agent here)
nginx-gateway:
image: nginx:1.21.5
container_name: nginx-gateway
restart: always
privileged: true
environment:
- TZ=Asia/Shanghai
ports:
- 8888:8081
volumes:
- ./deploy/nginx/conf.d:/etc/nginx/conf.d
- ./data/nginx/log:/var/log/nginx
networks:
- looklook_net
depends_on:
- looklook
#前端api + 业务rpc - Front-end API + business RPC
looklook:
image: lyumikael/gomodd:v1.0.0 # if you "macOs intel" or "linux amd"
#image: lyumikael/go-modd-env:v1.0.0 # if you macOs m1
container_name: looklook
environment:
# 时区上海 - Timezone Shanghai
TZ: Asia/Shanghai
GOPROXY: https://goproxy.cn,direct
working_dir: /go/looklook
volumes:
- .:/go/looklook
privileged: true
restart: always
networks:
- looklook_net
networks:
looklook_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16