Repository navigation
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
83 lines (74 loc) · 1.97 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
83 lines (74 loc) · 1.97 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
# expose, ports are additive, means each environment requires a own port mapping instead of a global one.
services:
nginx:
container_name: foodsharing_test_nginx
ports:
- "28080:8080"
# Customized PHP
#------------------------------------
app:
container_name: foodsharing_test_app
environment:
FS_ENV: test
ports:
- "29000:9000"
# Webpack client
#------------------------------------
client:
container_name: foodsharing_test_client
command: sh -c "yarn && yarn dev"
ports:
- "28090:8082"
# PHP mail queue runner
#------------------------------------
mailqueuerunner:
container_name: foodsharing_test_mailqueuerunner
environment:
FS_ENV: test
# Socket.io server
#------------------------------------
websocket:
container_name: foodsharing_test_websocket
ports:
- "21337:1337"
- "21338:1338"
# mysql
#------------------------------------
db:
container_name: foodsharing_test_db
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "23306:3306"
redis:
container_name: foodsharing_test_redis
phpmyadmin:
container_name: foodsharing_test_phpmyadmin
ports:
- "28081:80"
maildev:
container_name: foodsharing_test_maildev
ports:
- "28084:1080"
# E2E Tests with Playwright (Test Environment)
#------------------------------------
e2e:
user: ${CURRENT_USER}
container_name: foodsharing_test_e2e
image: mcr.microsoft.com/playwright:v1.57.0-noble
working_dir: /app/tests/e2e
# Keep container running for on-demand test execution via docker-compose exec
command: sh -c "mkdir -p /app/cache/e2e-home && tail -f /dev/null"
depends_on:
- nginx
- db
- websocket
volumes:
- ../:/app:delegated
environment:
- NPM_CONFIG_UPDATE_NOTIFIER=false
- HOME=/app/cache/e2e-home
- YARN_CACHE_FOLDER=/app/cache/yarn
ports:
- "29323:9323"
- "23008:3008"