Skip to content

Commit

Permalink
Add strapi to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
backjonas committed Jun 26, 2024
1 parent de87066 commit 2ad5976
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
db:
image: postgres:14.5-alpine
Expand All @@ -8,3 +7,28 @@ services:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: strapi
POSTGRES_DB: strapi
networks:
- db
strapi:
build: .
restart: on-failure
environment:
DATABASE_CLIENT: postgres
DATABASE_HOST: db
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
DATABASE_PORT: 5432
DATABASE_PASSWORD: mysecretpassword
JWT_SECRET: SomeJwtSecret
ADMIN_JWT_SECRET: AdminJwtSecret
APP_KEYS: AppKey1,AppKey2
API_TOKEN_SALT: ApiTokenSalt
NODE_ENV: production
ports:
- 1337:1337
networks:
- db

networks:
db:
driver: bridge

0 comments on commit 2ad5976

Please sign in to comment.