-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (49 loc) · 1.3 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
version: '3'
services:
nginx:
image: docker.io/library/nginx:1.25.3-alpine
volumes:
- ./build/nginx.conf:/etc/nginx/nginx.conf
- ./app/public:/app/public
ports:
- 8080:80
depends_on:
composer:
condition: service_completed_successfully
composer:
image: composer:latest
volumes:
- ./vendor:/app/vendor
- ./composer.json:/app/composer.json
- ./composer.lock:/app/composer.lock
command: ["install", "--no-dev"]
php:
build:
context: .
dockerfile: build/PHP.Dockerfile
volumes:
- ./app:/app
- ./vendor:/app/vendor
- ./build/zzz-docker.conf:/usr/local/etc/php-fpm.d/zzz-docker.conf
environment:
PS_DB_HOST: ${PS_DB_HOST}
PS_DB_USERNAME: ${PS_DB_USERNAME}
PS_DB_PASSWORD: ${PS_DB_PASSWORD}
PS_DB_NAME: ${PS_DB_NAME}
RESEND_API: ${RESEND_API}
HOST_ADDR: ${HOST_ADDR}
STRIPE_KEY: ${STRIPE_KEY}
depends_on:
composer:
condition: service_completed_successfully
command: php-fpm -R
phpmyadmin:
image: phpmyadmin:latest
# volumes:
# - ./build/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
ports:
- 8081:80
environment:
PMA_HOST: ${PS_DB_HOST}
PMA_USER: ${PS_DB_USERNAME}
PMA_PASSWORD: ${PS_DB_PASSWORD}