Skip to content

Commit

Permalink
Production settings for docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvwong committed Dec 5, 2023
1 parent 49c94b7 commit a02dafa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
12 changes: 3 additions & 9 deletions .env
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# watch
WATCHTOWER_IMAGE_TAG=1.1.6
WATCHTOWER_SCHEDULE="0 */15 * * * *"
WATCHTOWER_CLEANUP=true
WATCHTOWER_SCOPE=development

# webapp
APPUI_IMAGE_TAG=latest
APPUI_IMAGE_TAG=production
APPUI_PORT=3000
PC_URL=https://www.pathwaycommons.org/
NODE_ENV=development
FACTOID_URL=https://unstable.factoid.baderlab.org/
NODE_ENV=production
FACTOID_URL=https://biofactoid.org/
20 changes: 0 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
version: "3.8"
services:
watch:
image: containrrr/watchtower:${WATCHTOWER_IMAGE_TAG:-latest}
labels:
- com.centurylinklabs.watchtower.scope=${WATCHTOWER_SCOPE:-development}
restart: always
depends_on:
- webapp
container_name: watch
environment:
TZ: "America/Toronto"
WATCHTOWER_SCHEDULE:
WATCHTOWER_CLEANUP:
WATCHTOWER_SCOPE:
networks:
- app-ui-network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: ["webapp"]
webapp:
image: pathwaycommons/app-ui:${APPUI_IMAGE_TAG:-latest}
labels:
- com.centurylinklabs.watchtower.scope=${WATCHTOWER_SCOPE:-development}
restart: unless-stopped
container_name: webapp
ports:
Expand Down

1 comment on commit a02dafa

@IgorRodchenkov
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvwong no need in using docker-compose for running just one container app. The same can be done with docker run with args.
Docker-compose makes sense when we run several apps/services at once (a stack) that can also communitate via internal/virual network...

Please sign in to comment.