mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-11-30 02:37:57 +08:00
40 lines
790 B
YAML
40 lines
790 B
YAML
version: '3'
|
|
|
|
services:
|
|
eoapi:
|
|
# build: 从当前路径构建镜像
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
image: eolinker/eoapi:1.10.0
|
|
container_name: eoapi
|
|
restart: always
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
ports:
|
|
- '8000:80'
|
|
networks:
|
|
- eoapi_net
|
|
|
|
eoapi-test-server:
|
|
# build: 从当前路径构建镜像
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: builder
|
|
image: eolinker/eoapi-test-server:1.10.0
|
|
container_name: eoapi-test-server
|
|
restart: always
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
ports:
|
|
- '4201:4201'
|
|
- '4202:4202'
|
|
networks:
|
|
- eoapi_net
|
|
|
|
networks:
|
|
eoapi_net:
|
|
name: eoapi_net
|