diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-04 19:07:57 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-04 19:07:57 +0100 |
| commit | 2b5af5146d7c22eac4a5150a038a05620ec5b8a3 (patch) | |
| tree | f534dd82d0f16de158a783e39082dfe9a00da85a /docker-compose.yml | |
| parent | 79e3429ea8fb590f82b11f2b19a26427f2d1da4f (diff) | |
build(docker): make Docker deployement compatible with Docker Swarm
I also added a custom script to deploy the services with Docker Swarm.
Without it, Docker cannot read the `.env` file. Since I'm using a
variable to define the registry, the script is required.
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 8d0ad57..791f1ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ version: '3.8' services: apcom: + image: ${APP_DOCKER_REGISTRY_DOMAIN}/apcom build: context: . dockerfile: Dockerfile @@ -16,6 +17,7 @@ services: - '${APP_DOCKER_PORT:-3000}:${APP_DOCKER_PORT:-3000}' restart: always apcom-staging: + image: ${APP_DOCKER_REGISTRY_DOMAIN}/apcom-staging build: context: . dockerfile: Dockerfile |
