1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/strapi/docker-compose.yml

37 lines
798 B
YAML
Raw Normal View History

2021-04-27 10:47:02 +02:00
version: "3.8"
services:
strapi:
2021-04-27 11:26:52 +02:00
container_name: strapi
2021-07-02 11:49:33 +02:00
image: strapi/strapi:3.6.5-alpine
2021-04-27 11:26:52 +02:00
command: "strapi start"
2021-04-27 10:47:02 +02:00
ports:
- "1337:1337"
volumes:
- ./data/strapi:/srv/app
environment:
2021-04-27 11:26:52 +02:00
- NODE_ENV=production
2021-04-27 10:47:02 +02:00
- DATABASE_CLIENT=postgres
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DATABASE_USERNAME=strapi
- DATABASE_PASSWORD=strapi
- DATABASE_NAME=strapi
2021-04-27 11:26:52 +02:00
depends_on:
- postgres
2021-04-27 10:47:02 +02:00
restart: unless-stopped
postgres:
2021-04-27 11:26:52 +02:00
container_name: postgres
2021-07-02 11:49:33 +02:00
image: postgres:13.3-alpine
2021-04-27 10:47:02 +02:00
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=strapi
- POSTGRES_PASSWORD=strapi
- POSTGRES_DB=strapi
restart: unless-stopped