Skip to content

Commit e01d2d4

Browse files
Merge pull request #296 from Ecotrust/gh-package-docker-compose
Gh package docker compose
2 parents ac49ebb + ffb0323 commit e01d2d4

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

docker/docker-compose.prod.local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
extends:
99
file: common.yaml
1010
service: web
11+
image: ${WEB_IMAGE}:latest
1112
command: ["prod-local"]
1213
env_file:
1314
- path: .env.dev

docker/docker-compose.prod.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
extends:
99
file: common.yaml
1010
service: web
11-
image: ${ITKDB_ECR_PATH}:latest
11+
image: ${WEB_IMAGE}:latest
1212
command: ["prod"]
1313
env_file:
1414
- path: .env.prod
@@ -24,7 +24,7 @@ services:
2424
- static_volume:/usr/src/app/static
2525
- media_volume:/usr/src/app/media
2626
proxy:
27-
image: ${ITKDB_PROXY_ECR_PATH}:latest
27+
image: ${PROXY_IMAGE}:latest
2828
restart: unless-stopped
2929
depends_on:
3030
- web
@@ -46,7 +46,7 @@ services:
4646
extends:
4747
file: common.yaml
4848
service: celery
49-
image: ${ITKDB_ECR_PATH}:latest
49+
image: ${WEB_IMAGE}:latest
5050
env_file:
5151
- path: .env.prod
5252
required: true
@@ -56,7 +56,7 @@ services:
5656
extends:
5757
file: common.yaml
5858
service: celery-beat
59-
image: ${ITKDB_ECR_PATH}:latest
59+
image: ${WEB_IMAGE}:latest
6060
env_file:
6161
- path: .env.prod
6262
required: true

infra/user_data.tftpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ SQL_USER=${sql_db_user}
7373
SQL_PASSWORD=${sql_db_password}
7474
SQL_HOST=${sql_host}
7575
SQL_PORT=${sql_port}
76-
ITKDB_ECR_PATH=${web_ecr_image_uri}
77-
ITKDB_PROXY_ECR_PATH=${proxy_ecr_image_uri}
76+
WEB_IMAGE=${web_ecr_image_uri}
77+
PROXY_IMAGE=${proxy_ecr_image_uri}
7878
CELERY_BROKER_URL=${celery_broker_url}
7979
GIS_USER_PASSWORD=${gis_user_password}
8080
DOMAIN_NAME=${domain_name}

0 commit comments

Comments
 (0)