-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.example
More file actions
56 lines (50 loc) · 1.39 KB
/
docker-compose.example
File metadata and controls
56 lines (50 loc) · 1.39 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
version: "3.4"
services:
php: &php
build:
context: .
dockerfile: .docker/php/Dockerfile
env_file:
- .env
volumes:
- ./:/app
user: "${UID:-1000}:${GID:-1000}"
ports:
- 80:80
command: "php -S 0.0.0.0:80 /app/index.php"
# labels:
# # Simple HTTP traefik support
# - "traefik.http.routers.${APP_PROJECT}.rule=Host(`${APP_DOMAIN}`)"
# - "traefik.http.services.${APP_PROJECT}-service.loadbalancer.server.port=80"
# docker-compose run --rm composer require user/package
composer:
<<: *php
container_name: ${APP_PROJECT}-composer
working_dir: /app/
command: -V
entrypoint: ['/usr/bin/composer']
# docker-compose run --rm pest --version
pest:
<<: *php
container_name: ${APP_PROJECT}-pest
working_dir: /app/
command:
entrypoint: ['vendor/bin/pest']
questdb:
container_name: ${APP_PROJECT}-questdb
hostname: questdb_server
image: questdb/questdb:latest
ports:
- 9000:9000
- 9009:9009
# volumes:
# - "./questdb:/var/lib/questdb"
# labels:
# # Simple HTTP traefik support
# - "traefik.http.routers.${APP_PROJECT}-questdb.rule=Host(`console.${APP_DOMAIN}`)"
# - "traefik.http.services.${APP_PROJECT}-questdb-service.loadbalancer.server.port=9000"
# # Traefik external network
# networks:
# default:
# name: web
# external: true