postcat/docker-compose.yml

40 lines
790 B
YAML
Raw Normal View History

2022-11-01 21:41:26 +08:00
version: '3'
services:
eoapi:
# build: 从当前路径构建镜像
build:
context: .
dockerfile: Dockerfile
target: production
2022-11-18 11:20:41 +08:00
image: eolinker/eoapi:1.10.0
2022-11-01 21:41:26 +08:00
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
2022-11-18 11:20:41 +08:00
image: eolinker/eoapi-test-server:1.10.0
2022-11-01 21:41:26 +08:00
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