Skip to content

Commit

Permalink
trying to fix docker build on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjaiswal1610 committed Dec 31, 2023
1 parent 03d5d98 commit fcb6347
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ logs

node_modules
bower_components
private

*.sublime*

Expand Down
74 changes: 74 additions & 0 deletions dc_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
version: '3.9'
services:
client:
container_name: vc-frontend
init: true
build:
context: ./client
restart: always
ports:
- 3000:3000
env_file:
- ./client/.env.docker
- ./client/.env

authservice:
container_name: vc-authservice
init: true
build:
context: ./authservice
restart: always
ports:
- 6969:6969
environment:
- NODE_ENV: "PRODUCTION"
- PORT: 6969
- SECRET_KEY: /run/secrets/secret_key
- SENDER_GMAIL_ADDRESS: /run/secrets/sender_gmail_address
- SENDER_GMAIL_ACCESS_TOKEN: /run/secrets/gmail_access_token
- SENDER_GMAIL_CLIENT_ID: /run/secrets/gmail_client_id
- SENDER_GMAIL_CLIENT_SECRET: /run/secrets/gmail_client_secret
- SENDER_GMAIL_REFRESH_TOKEN: /run/secrets/gmail_refresh_token
- DB_HOST: /run/secrets/db_host
- DB_PORT: 5432
- DB_USERNAME: /run/secrets/db_username
- DB_PASSWORD: /run/secrets/db_password
- ACCESS_TOKEN_SECRET: /run/secrets/access_token_secret
- REFRESH_TOKEN_SECRET: /run/secrets/refresh_token_secret
secrets:
- secret_key
- sender_gmail_address
- gmail_access_token
- gmail_client_id
- gmail_client_secret
- gmail_refresh_token
- db_host
- db_username
- db_password
- access_token_secret
- refresh_token_secret

secrets:
secret_key:
file: /private/secretKey.txt
sender_gmail_address:
file: /private/senderGmailAddr.txt
gmail_access_token:
file: /private/gmailAccessToken.txt
gmail_client_id:
file: /private/gmailClientId.txt
gmail_client_secret:
file: /private/gmailCLientSecret.txt
gmail_refresh_token:
file: /private/gmailRefreshToken.txt
db_host:
file: /private/dbHost.txt
db_username:
file: /private/dbUsername.txt
db_password:
file: /private/dbPassword.txt
access_token_secret:
file: /private/accessTokenSecret.txt
refresh_token_secret:
file: /private/refreshTokenSecret.txt

2 changes: 0 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
- 3000:3000
env_file:
- ./client/.env.docker
- ./client/.env

authservice:
container_name: vc-authservice
Expand All @@ -22,4 +21,3 @@ services:
- 6969:6969
env_file:
- ./authservice/.env.docker
- ./authservice/.env

0 comments on commit fcb6347

Please sign in to comment.