diff options
| author | 2023-04-28 01:47:57 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:47:57 +0800 | |
| commit | 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch) | |
| tree | 29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/with-docker/docker-compose.yml | |
| parent | fc8c5fdce62fb229202659408798a7b6c98f6e8b (diff) | |
| download | HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip | |
Diffstat (limited to 'examples/with-docker/docker-compose.yml')
| -rw-r--r-- | examples/with-docker/docker-compose.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/with-docker/docker-compose.yml b/examples/with-docker/docker-compose.yml new file mode 100644 index 0000000..d60ed4c --- /dev/null +++ b/examples/with-docker/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3" + +services: + web: + container_name: web + build: + context: . + dockerfile: ./apps/web/Dockerfile + restart: always + ports: + - 3000:3000 + networks: + - app_network + api: + container_name: api + build: + context: . + dockerfile: ./apps/api/Dockerfile + restart: always + ports: + - 3001:3001 + networks: + - app_network + +# Define a network, which allows containers to communicate +# with each other, by using their container name as a hostname +networks: + app_network: + external: true |
