Skip to content

Commit

Permalink
Merge pull request #5 from dappnode/pablo/add-docker-compose
Browse files Browse the repository at this point in the history
Add docker compose
  • Loading branch information
pablomendezroyo authored Jan 4, 2024
2 parents 022662c + 4bbb7e2 commit 96335a2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ WORKDIR /app

# Copy only the necessary files into the runtime stage
COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
COPY .env .
COPY twitter.py .

# Run twitter.py when the container launches
Expand Down
14 changes: 14 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.8"

services:
api:
build:
context: .
dockerfile: Dockerfile
environment:
CONSUMER_KEY: ""
CONSUMER_SECRET: ""
ACCESS_TOKEN: ""
ACCESS_TOKEN_SECRET: ""
BEARER_TOKEN: ""
restart: always
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3.8"

services:
smooth-bot:
container_name: check-ports-service
image: ghcr.io/dappnode/smooth-bot:latest
environment:
CONSUMER_KEY: ""
CONSUMER_SECRET: ""
ACCESS_TOKEN: ""
ACCESS_TOKEN_SECRET: ""
BEARER_TOKEN: ""
restart: always

0 comments on commit 96335a2

Please sign in to comment.