-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.21 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.4'
networks:
howtocodewell:
volumes:
webserver_cache:
webserver_logs:
services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- webserver
restart: always
container_name: https_portal
volumes:
- ${SSL_STORE}:/var/lib/https-portal
networks:
- howtocodewell
environment:
DOMAINS: ${DOMAINS}
STAGE: ${SSL_STAGE}
FORCE_RENEW: ${FORCE_RENEW}
webserver:
build:
context: .
restart: always
container_name: webserver
volumes:
- .:/var/www/html
- webserver_cache:/var/www/html/var/cache:Z
- webserver_logs:/var/www/html/var/log:Z
- ./infra/docker/dev/apache/config/vhost.conf:/etc/apache2/sites-available/000-default.conf
- ./infra/docker/dev/php/config/php.ini:/usr/local/etc/php/php.ini
networks:
- howtocodewell
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html/public
- APP_ENV=prod
node:
image: node:16
volumes:
- .:/app
networks:
- howtocodewell
composer:
image: howtocodewell/composer:php-8
working_dir: /var/www/html
networks:
- howtocodewell
volumes:
- .:/app