forked from EOS-uiux-Solutions/user-story
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 854 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
services:
eosstrapi:
image: ghcr.io/eos-uiux-solutions/strapi:latest
environment:
DATABASE_CLIENT: mongo
DATABASE_NAME: strapi
DATABASE_HOST: mongodb
DATABASE_PORT: 27017
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: password
EOS_CORS_DOMAINS: 'http://localhost:3000, http://localhost:4999'
WITH_DOCKER: 'true'
restart: unless-stopped
networks:
- eos-strapi
ports:
- '1337:1337'
mongodb:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: strapi
MONGO_INITDB_ROOT_PASSWORD: password
networks:
- eos-strapi
volumes:
- ~/mongo/data:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- '27017:27017'
networks:
eos-strapi:
driver: bridge