Makefile 1.16 KB
Newer Older
1
2
DOCKER_COMPOSE="$$(pwd)/data/scripts/docker-compose.sh"
COMPOSER="$$(pwd)/data/scripts/composer.sh"
3
4
5
6
include .env

init: composer-install install-typo3
reset: kill down init
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
up:
	$(DOCKER_COMPOSE) up -d
ps:
	$(DOCKER_COMPOSE) ps
stop:
	$(DOCKER_COMPOSE) stop
kill:
	$(DOCKER_COMPOSE) kill
build:
	$(DOCKER_COMPOSE) build --no-cache
pull:
	$(DOCKER_COMPOSE) pull
log:
	$(DOCKER_COMPOSE) logs -f --tail=100
down:
	$(DOCKER_COMPOSE) down --remove-orphans
composer-install:
24
	$(COMPOSER) --working-dir=data/typo3 install
25
composer-update:
26
	$(COMPOSER) --working-dir=data/typo3 up
27
install-typo3: up
28
	$(DOCKER_COMPOSE) run --rm php /src/data/scripts/wait-for-it.sh -h $(DATABASE_HOST_NAME) -p $(DATABASE_PORT) -t 30
29
30
31
32
33
34
35
36
37
38
39
40
41
	$(DOCKER_COMPOSE) run --rm php ./bin/typo3cms install:setup \
		--non-interactive \
		--force \
		--database-user-name $(DATABASE_USER) \
		--database-user-password $(DATABASE_USER_PASSWORD) \
		--database-host-name $(DATABASE_HOST_NAME) \
		--database-port $(DATABASE_PORT) \
		--database-name $(DATABASE_NAME) \
		--use-existing-database \
		--admin-user-name $(ADMIN_USER_NAME) \
		--admin-password $(ADMIN_PASSWORD) \
		--site-name $(TYPO3_SITENAME) \
		--site-setup-type site