Skip to content

Commit d6c344b

Browse files
committed
add local docker-compose to build
1 parent 8cb44c7 commit d6c344b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker/docker-compose.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# docker-compose.yml
2+
# RUN: ```docker-compose --env-file```
3+
version: "3.7"
4+
5+
services:
6+
npm:
7+
build:
8+
context: ../
9+
dockerfile: ./docker/Dockerfile
10+
args:
11+
VERSION: 2.7.3 #"${NPM_VERSION}" # if using .env file
12+
image: npm:test # provide a name and tag for the image
13+
# mariadb:
14+
# build:
15+
# context: .
16+
# dockerfile: Dockerfile-mariadb
17+
# args:
18+
# VERSION: 10.4.15 #"${MARIADB_VERSION}" # if using .env file
19+
# image: mariadb:test
20+
21+
22+
# volumes: # Optional, same as `docker volume create`
23+
24+
# networks: # Optional, same as `docker network create`

0 commit comments

Comments
 (0)