forked from fermyon/spin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
e2e-tests-docker-compose.yml
61 lines (55 loc) · 1.3 KB
/
e2e-tests-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
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.9"
services:
mysql:
image: ${MYSQL_IMAGE:-mysql:8.0.22}
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: spin
MYSQL_DATABASE: spin_dev
MYSQL_USER: spin
MYSQL_PASSWORD: spin
postgres:
image: ${POSTGRES_IMAGE:-postgres:14.7-alpine}
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=spin_dev
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: ${REDIS_IMAGE:-redis:7.0.8-alpine3.17}
ports:
- "6379:6379"
restart: always
registry:
image: ${REGISTRY_IMAGE:-registry:2}
ports:
- "5001:5000"
restart: always
environment:
- REGISTRY_HTTP_SECRET=secret
e2e-tests:
depends_on:
- mysql
- redis
- postgres
- registry
image: spin-e2e-tests
entrypoint: cargo test spinup_tests --features e2e-tests --no-fail-fast -- --nocapture
volumes:
- target_cache:/e2e-tests/target
- cargo_registry_cache:/usr/local/cargo/registry
- cargo_git_cache:/usr/local/cargo/git
volumes:
db_data: {}
postgres_data: {}
cargo_registry_cache: {}
cargo_git_cache: {}
target_cache: {}