2022-11-01 21:41:26 +08:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-12-30 23:46:51 +08:00
|
|
|
postcat:
|
2022-11-01 21:41:26 +08:00
|
|
|
# build: 从当前路径构建镜像
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: production
|
2022-12-30 23:46:51 +08:00
|
|
|
image: eolinker/postcat:${VERSION}
|
|
|
|
container_name: postcat
|
2022-11-01 21:41:26 +08:00
|
|
|
restart: always
|
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
|
|
|
ports:
|
|
|
|
- '8000:80'
|
|
|
|
networks:
|
2022-12-30 23:46:51 +08:00
|
|
|
- postcat_net
|
2022-11-01 21:41:26 +08:00
|
|
|
|
2022-12-30 23:46:51 +08:00
|
|
|
postcat-test-server:
|
2022-11-01 21:41:26 +08:00
|
|
|
# build: 从当前路径构建镜像
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
target: builder
|
2022-12-30 23:46:51 +08:00
|
|
|
image: eolinker/postcat-test-server:${VERSION}
|
|
|
|
container_name: postcat-test-server
|
2022-11-01 21:41:26 +08:00
|
|
|
restart: always
|
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
|
|
|
ports:
|
|
|
|
- '4201:4201'
|
|
|
|
- '4202:4202'
|
|
|
|
networks:
|
2022-12-30 23:46:51 +08:00
|
|
|
- postcat_net
|
2022-11-01 21:41:26 +08:00
|
|
|
|
|
|
|
networks:
|
2022-12-30 23:46:51 +08:00
|
|
|
postcat_net:
|
|
|
|
name: postcat_net
|