-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (119 loc) · 3.45 KB
/
docker-compose.yml
File metadata and controls
119 lines (119 loc) · 3.45 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: chubbyphp-petstore
services:
php:
container_name: chubbyphp-petstore-php
hostname: chubbyphp-petstore-php
build:
dockerfile: ./docker/development/php/Dockerfile
context: ./
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
environment:
APP_ENV: dev
POSTGRES_URI: 'pgsql://petstore:4aAUfBjDACcdZxNwJgJ6@postgres:5432/petstore?charset=utf8'
SSH_AUTH_SOCK: /ssh-agent
volumes:
- ${PWD}:/app
- ~/.bash_docker:/home/php/.bash_docker
- ~/.bash_history:/home/php/.bash_history
- ~/.gitconfig:/home/php/.gitconfig
- ~/.gitignore:/home/php/.gitignore
- ~/.local/share/opencode/auth.json:/home/php/.local/share/opencode/auth.json
- ~/.zsh_docker:/home/php/.zsh_docker
- ~/.zsh_history:/home/php/.zsh_history
- $SSH_AUTH_SOCK:/ssh-agent
depends_on:
- postgres
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '9003:9003'
php-fluentd:
container_name: chubbyphp-petstore-php-fluentd
hostname: chubbyphp-petstore-php-fluentd
build:
dockerfile: ./docker/production/php-fluentd/Dockerfile
context: ./
user: "${USER_ID:-1000}:${GROUP_ID:-1000}"
environment:
STACK: 'local'
OPENSEARCH_HOSTS: 'opensearch:9200'
OPENSEARCH_USER: 'admin'
OPENSEARCH_PASSWORD: '98T722Eqw99oqFCSJCnB'
OPENSEARCH_SSL_VERIFY: 'false'
volumes:
- ${PWD}/var/log:/app/var/log
depends_on:
- opensearch
nginx:
container_name: chubbyphp-petstore-nginx
hostname: chubbyphp-petstore-nginx
image: nginx:1
environment:
SERVER_PORT: '443'
PHP_FPM_SERVER_HOST: 'php'
PHP_FPM_SERVER_PORT: '9000'
SWAGGER_SERVER_HOST: 'swagger-ui'
SWAGGER_SERVER_PORT: '8080'
ports:
- '443:443'
volumes:
- ./docker/development/nginx:/etc/nginx/templates
- ${PWD}/public:/app/public:ro
depends_on:
- php
- swagger-ui
opensearch:
container_name: chubbyphp-petstore-opensearch
hostname: chubbyphp-petstore-opensearch
image: opensearchproject/opensearch:2
environment:
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
OPENSEARCH_INITIAL_ADMIN_PASSWORD: '98T722Eqw99oqFCSJCnB'
discovery.type: 'single-node'
ports:
- 9200:9200
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
'CMD-SHELL',
'curl -sk https://localhost:9200 | grep -q "Unauthorized"'
]
interval: 10s
timeout: 10s
retries: 120
opensearch-dashboard:
container_name: chubbyphp-petstore-opensearch-dashboard
hostname: chubbyphp-petstore-opensearch-dashboard
image: opensearchproject/opensearch-dashboards:2
environment:
OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
ports:
- 5601:5601
postgres:
container_name: chubbyphp-petstore-postgres
hostname: chubbyphp-petstore-postgres
image: postgres:17
command: -c log_statement=all -c log_error_verbosity=VERBOSE
environment:
POSTGRES_DB: petstore
POSTGRES_PASSWORD: 4aAUfBjDACcdZxNwJgJ6
POSTGRES_USER: petstore
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
swagger-ui:
container_name: chubbyphp-petstore-swagger-ui
hostname: chubbyphp-petstore-swagger-ui
image: swaggerapi/swagger-ui
environment:
BASE_URL: /swagger
URLS: '[ { url: "/openapi" } ]'
volumes:
postgres: