Skip to content

Commit

Permalink
Merge pull request #120 from GeneralMagicio/feat/run-mode
Browse files Browse the repository at this point in the history
Updated example env
  • Loading branch information
aminlatifi authored Oct 31, 2024
2 parents 41293c5 + b38f532 commit 3d7a356
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
3 changes: 3 additions & 0 deletions config/example.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
GRAPHQL_MODE=true
JOB_MODE=true

JWT_SECRET=
JWT_MAX_AGE=
TYPEORM_DATABASE_TYPE=
Expand Down
27 changes: 22 additions & 5 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
services:
qacc-be:
container_name: qacc-be
qacc-be-graph-ql:
container_name: qacc-be-graph-ql
image: ghcr.io/generalmagicio/qacc-be:main
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
- LOG_PATH=/usr/src/app/logs/qacc.log
- GRAPHQL_MODE=true
restart: always
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs:/usr/src/app/logs
- ./logs-graph-ql:/usr/src/app/logs
networks:
- qacc
ports:
- "4001:4000"
- '4001:4000'

qacc-be-job:
container_name: qacc-be-job
image: ghcr.io/generalmagicio/qacc-be:main
command: npm run start:docker:server
environment:
- ENVIRONMENT=production
- LOG_PATH=/usr/src/app/logs/qacc.log
- JOB_MODE=true
restart: always
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs-job:/usr/src/app/logs
networks:
- qacc

qacc-redis:
container_name: qacc-redis
Expand All @@ -27,7 +44,7 @@ services:
networks:
- qacc
ports:
- "6379:6379"
- '6379:6379'

caddy:
image: caddy:2-alpine
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-staging.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
qacc-be:
qacc-be-graph-ql:
container_name: qacc-be-graph-ql
image: ghcr.io/generalmagicio/qacc-be:staging
command: npm run start:docker:server
Expand All @@ -11,7 +11,7 @@ services:
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs:/usr/src/app/logs
- ./logs-graph-ql:/usr/src/app/logs
networks:
- qacc
ports:
Expand All @@ -29,7 +29,7 @@ services:
volumes:
- ./config:/usr/src/app/config
- ./config:/usr/src/app/build/config
- ./logs:/usr/src/app/logs
- ./logs-job:/usr/src/app/logs
networks:
- qacc

Expand Down
Empty file added logs-graph-ql/.gitkeep
Empty file.
Empty file added logs-job/.gitkeep
Empty file.

0 comments on commit 3d7a356

Please sign in to comment.