-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (38 loc) · 832 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (38 loc) · 832 Bytes
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
version: '3'
services:
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:
- linkme_net
depends_on:
- linkme
linkme:
# 使用项目根目录下的 Dockerfile 自行构建镜像
image: linkme/gomodd:v1.22.3
container_name: linkme
environment:
TZ: Asia/Shanghai
GOPROXY: https://goproxy.cn,direct
working_dir: /go/linkme
volumes:
- .:/go/linkme
privileged: true
restart: always
networks:
- linkme_net
networks:
linkme_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16