Skip to content

Commit 6f0ace8

Browse files
committed
docker setup
1 parent ad1499d commit 6f0ace8

File tree

11 files changed

+1844
-0
lines changed

11 files changed

+1844
-0
lines changed

Diff for: .env.dist

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Environment variables required for Docker build
2+
SERVICE_ROOT_PATH=./store
3+
PHP_MEMORY_LIMIT=4000M
4+
TIMEZONE=Europe/Berlin

Diff for: docker-compose.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: '2.1'
2+
3+
services:
4+
php:
5+
build:
6+
context: ./store
7+
args:
8+
TIMEZONE: ${TIMEZONE}
9+
volumes:
10+
- ./${SERVICE_ROOT_PATH}:/srv/service
11+
environment:
12+
APP_ENV: "dev"
13+
APP_DEBUG: "true"
14+
PHP_IDE_CONFIG: "serverName=docker.dev"
15+
MONGODB_URL: "mongodb://mongodb:27017"
16+
depends_on:
17+
- mongodb
18+
19+
nginx:
20+
build: ./docker/nginx
21+
ports:
22+
- 8021:80
23+
volumes:
24+
- ${SERVICE_ROOT_PATH}/public:/srv/service/public:ro
25+
depends_on:
26+
- php
27+
28+
mongodb:
29+
image: mongo:latest
30+
environment:
31+
- MONGO_DATA_DIR=/usr/data/db
32+
- MONGO_LOG_DIR=/dev/null
33+
volumes:
34+
- ./.data/db:/usr/data/db
35+
ports:
36+
- 27017:27017
37+
command: mongod --smallfiles --logpath=/dev/null # --quiet
38+
39+

Diff for: docker/grafana/config.monitoring

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GF_SECURITY_ADMIN_PASSWORD=foobar
2+
GF_USERS_ALLOW_SIGN_UP=false

0 commit comments

Comments
 (0)