-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
30 lines (28 loc) · 955 Bytes
/
docker-compose.test.yml
File metadata and controls
30 lines (28 loc) · 955 Bytes
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
services:
php:
build:
context: ./
dockerfile: ./.docker/Dockerfile
target: armaforces_web_php
cache_from:
- docker.pkg.github.com/armaforces/website/app_assets:dev
- docker.pkg.github.com/armaforces/website/app_php:dev
environment:
APP_ENV: test
volumes:
# Copy tests into runtime
- './.env.test:/www/app/.env.test:ro'
- './tests:/www/app/tests:rw'
- './codeception.yml:/www/app/codeception.yml'
- './.php-cs-fixer.dist.php:/www/app/.php-cs-fixer.dist.php:ro'
- './phpstan.neon.dist:/www/app/phpstan.neon.dist:ro'
depends_on:
- pgsql
pgsql:
image: postgres:16.0-alpine
env_file:
- .docker/pgsql/vars.env
environment:
POSTGRES_DB: 'af_website_test'
ports:
- "5432:5432"