-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 loc) · 1.08 KB
/
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
services:
test:
build:
context: ./app # Build context is the app directory
dockerfile: Dockerfile.test # Use Dockerfile.test
args:
- TARGET_PLATFORM=linux/arm64 # Change depending on the target platform
depends_on:
- redis # Ensure the Redis container is started first
env_file:
- .env # Load environment variables from the .env file
app:
build:
context: ./app # Build context is the app directory
dockerfile: Dockerfile.app # Use Dockerfile.app
target: final
args:
- TARGET_PLATFORM=linux/arm64 # Change depending on the target platform
ports:
- "80:80"
depends_on:
- test # Ensure that the tests pass first
- redis # Ensure the Redis container is started first
env_file:
- .env # Load environment variables from the .env file
redis:
build:
context: ./redis # Build context is the redis directory
args:
- TARGET_PLATFORM=linux/arm64 # Change depending on the target platform
ports:
- "6379:6379" # Map host port to container port